Skip to content

Commit

Permalink
Publish static site to GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jun 8, 2024
1 parent a40def2 commit 55fa3c7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Static Site

on:
push:

jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- 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

0 comments on commit 55fa3c7

Please sign in to comment.