chore: use mlugg/setup-zig (#14) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: | |
- ubuntu-latest | |
steps: | |
- name: install zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: generate docs | |
run: zig build docs | |
- name: setup pages | |
uses: actions/configure-pages@v5 | |
- name: upload artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./zig-out/docs/ | |
- name: deploy pages | |
uses: actions/deploy-pages@v4 |