-
Notifications
You must be signed in to change notification settings - Fork 260
52 lines (43 loc) · 1.13 KB
/
pages.yaml
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
49
50
51
52
name: Pages
on:
# Only run after a successful release
workflow_call:
# Allow running manually
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
uses: ./.github/workflows/docs.yaml
deploy:
runs-on: ubuntu-latest
needs:
- docs
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup | Zola
run: |
wget -qO- https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz | tar -xzf -
sudo install zola /usr/local/bin/zola
- name: Build | Zola
run: |
cd site
zola build
- name: Fetch | Docs
id: fetch-docs
uses: actions/download-artifact@v4
with:
name: book
path: $GITHUB_WORKSPACE/site/public/guide
- name: Dump | Site
run: |
find ./site/public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site/public
cname: trunkrs.dev