Skip to content

Commit 999bf38

Browse files
committed
Add CI workflows for docs publishing
1 parent cb65b83 commit 999bf38

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
upload-artifacts:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: mlugg/setup-zig@v2
13+
- run: zig build docs
14+
- uses: actions/upload-pages-artifact@v3
15+
with:
16+
path: zig-out/docs/
17+
18+
deploy-pages:
19+
needs: upload-artifacts
20+
runs-on: ubuntu-latest
21+
permissions:
22+
pages: write
23+
id-token: write
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
steps:
28+
- id: deployment
29+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)