Skip to content

Publish static site to GH pages #1

Publish static site to GH pages

Publish static site to GH pages #1

Workflow file for this run

name: Static Site
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
if: github.ref_name == github.event.repository.default_branch
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4