Skip to content

Refactor of globals and State #149

Refactor of globals and State

Refactor of globals and State #149

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
workflow_dispatch:
pull_request:
push:
branches:
- "master"
defaults:
run:
shell: bash -euxo pipefail {0}
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm ci
- name: Lint
run: |
npx prettier --check .
- name: Test
run: |
make test
deploy:
runs-on: ubuntu-24.04
needs: test
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued. However, do NOT cancel in-progress runs as we
# want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm ci
- name: Build
run: |
make build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4