Skip to content

ci: migrate from CircleCI to GitHub Actions #1

ci: migrate from CircleCI to GitHub Actions

ci: migrate from CircleCI to GitHub Actions #1

Workflow file for this run

name: build & deploy
on:
push:
branches: [source]
pull_request:
workflow_dispatch:
permissions:
contents: read
# Let a running deploy finish rather than cancelling it half way.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: npm
- run: npm ci
- run: npm run build
# Uploaded on pull requests too, so the built site can be downloaded
# from the run page for review.
- uses: actions/upload-pages-artifact@v5
with:
path: build
deploy:
needs: build
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5