-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcd.yaml
More file actions
48 lines (37 loc) · 1.14 KB
/
Copy pathcd.yaml
File metadata and controls
48 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CD
on:
push:
branches: [main]
jobs:
emit:
runs-on: codeberg-tiny-lazy
steps:
- name: Check out repository
uses: https://code.forgejo.org/actions/checkout@v6
- name: Set up Zig
uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Run `doc` step
run: zig build doc
- name: Upload artifact for Codeberg Pages
uses: https://code.forgejo.org/forgejo/upload-artifact@v5
with:
path: zig-out/docs/
deploy:
needs: emit
runs-on: codeberg-tiny-lazy
steps:
- name: Check out repository
uses: https://code.forgejo.org/actions/checkout@v6
with:
ref: pages
- name: Download artifact for Codeberg Pages
uses: https://code.forgejo.org/forgejo/download-artifact@v6
with:
name: artifact
- name: Deploy documentation to Codeberg Pages
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Deploy documentation" --allow-empty
git push