Skip to content

Merge pull request #153 from pomsky-lang/dependabot/npm_and_yarn/deve… #89

Merge pull request #153 from pomsky-lang/dependabot/npm_and_yarn/deve…

Merge pull request #153 from pomsky-lang/dependabot/npm_and_yarn/deve… #89

Workflow file for this run

name: Deploy (next)
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: 🚚 Install dependencies
run: npm ci
- name: 📦 Build website
run: npm run build -- -v --environment=next
- name: Fix CNAME url
run: echo 'next.pomsky-lang.org' > public/CNAME
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.WEBSITE_PUBLISH_TOKEN }}
repository-name: pomsky-lang/website-next-branch
branch: main
folder: public