Skip to content

Commit 5f08c84

Browse files
committed
workflows: add upload-docs
1 parent 3f1437c commit 5f08c84

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/upload-docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4.2.2
12+
- name: Setup Zig
13+
uses: mlugg/setup-zig@v1.2.1
14+
with:
15+
version: latest
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version-file: package.json
20+
- name: Install Test Dependencies
21+
run: bun i
22+
- name: Build Docs
23+
run: zig build -Demit-docs
24+
- name: Upload Docs
25+
uses: cloudflare/wrangler-action@v3
26+
with:
27+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
29+
command: pages deploy zig-out/docs --project-name=zigpak
30+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)