Skip to content

Commit fc88a4d

Browse files
ci: add GitHub Actions workflow for deploying documentation
1 parent 09102c5 commit fc88a4d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: mlugg/setup-zig@v1
14+
with:
15+
version: 0.14.0
16+
- run: zig build docs
17+
18+
- name: Upload Pages artifact
19+
uses: actions/upload-pages-artifact@v3
20+
with:
21+
path: ./zig-out/docs
22+
23+
deploy:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
27+
permissions:
28+
pages: write
29+
id-token: write
30+
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4
39+

0 commit comments

Comments
 (0)