File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: CC0-1.0
2+ # SPDX-FileCopyrightText: 2024 Lee Cannon <leecannon@leecannon.xyz>
3+
4+ name : Deploy docs to GitHub Pages
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ paths :
11+ - " .github/workflows/DOCS.yml"
12+ - " **.zig"
13+ - " **.zig.zon"
14+
15+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+ permissions :
17+ contents : read
18+ pages : write
19+ id-token : write
20+
21+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+ concurrency :
24+ group : " pages"
25+ cancel-in-progress : false
26+
27+ jobs :
28+ deploy :
29+ environment :
30+ name : github-pages
31+ url : ${{ steps.deployment.outputs.page_url }}
32+ runs-on : ubuntu-latest
33+ steps :
34+ - uses : actions/checkout@v4
35+ - uses : mlugg/setup-zig@v1
36+ with :
37+ version : master
38+
39+ - name : Build docs
40+ run : zig build docs
41+
42+ - name : Setup Pages
43+ uses : actions/configure-pages@v5
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v3
46+ with :
47+ path : ' zig-out/docs'
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments