Skip to content

Workflow file for this run

name: "Generate documentation"
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
gen:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Generate documentation
run: zig build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "zig-out/docs"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main