Skip to content

Commit a257bae

Browse files
committed
ci: deploy docs to GitHub Pages
1 parent 8132e56 commit a257bae

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,3 @@ jobs:
1717
with:
1818
version: 0.14.0-dev.2628+5b5c60f43
1919
- run: zig fmt --check .
20-
docs:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- uses: mlugg/setup-zig@v1
25-
with:
26-
version: 0.14.0-dev.2628+5b5c60f43
27-
- run: zig build docs

.github/workflows/docs.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy static content to Pages
2+
on:
3+
push:
4+
branches: ["master"]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: false
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: mlugg/setup-zig@v1
22+
with:
23+
version: 0.14.0-dev.2628+5b5c60f43
24+
- run: zig build docs
25+
- uses: actions/configure-pages@v5
26+
- uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: "./docs/"
29+
- uses: actions/deploy-pages@v4
30+
id: deployment

0 commit comments

Comments
 (0)