Skip to content

ci: release github pages on gh-pages branch #3

ci: release github pages on gh-pages branch

ci: release github pages on gh-pages branch #3

Workflow file for this run

name: github-pages
on:
push:
branches:
- gh-pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: goto-bus-stop/setup-zig@v2
- uses: actions/setup-node@v4
- uses: actions/configure-pages@v4
id: pages
- run: npm install
- run: zig build -Dtarget=wasm32-wasi -Doptimize=ReleaseSmall
- run: npm run build -- --base "${{ steps.pages.outputs.base_path }}"
- uses: actions/upload-pages-artifact@v3
with:
path: "dist/"
deploy:
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