-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.18 KB
/
docs_dev.yml
File metadata and controls
50 lines (44 loc) · 1.18 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
49
50
name: Dev website
on:
push:
branches:
- 'dev-*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install zensical
- run: python utils/members_table.py docs/data/members.json docs/members.md
- run: zensical build --clean
- uses: actions/upload-artifact@v4
with:
name: site-build
path: site/
retention-days: 1
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write # required for peaceiris push
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v4
with:
name: site-build
path: site/
- name: Deploy for Cloudflare
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: gh-pages-dev
force_orphan: true
commit_message: |
Deploy preview from ${{ github.ref_name }}
${{ github.event.head_commit.message }}