Skip to content

Update to Zig 0.15.1 and automate docs #1

Update to Zig 0.15.1 and automate docs

Update to Zig 0.15.1 and automate docs #1

Workflow file for this run

on:
push:
workflow_dispatch:
permissions:
pages: write
id-token: write
jobs:
autodocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mlugg/setup-zig@v1
with:
version: 0.15.1
- run: |
zig build-lib -femit-docs src/root.zig
mv docs _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mlugg/setup-zig@v1
with:
version: 0.15.1
- run: zig build test --summary all
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- autodocs
- test
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4