-
Notifications
You must be signed in to change notification settings - Fork 21
50 lines (47 loc) · 1.33 KB
/
deploy.yml
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: Generate static site
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 7 * * *'
concurrency:
group: generate-static-site
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main
- name: Checkout winsiderss/systeminformer
uses: actions/checkout@v4
with:
repository: winsiderss/systeminformer
path: systeminformer
fetch-depth: 0
sparse-checkout: |
phnt/include
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install markdown2 Pygments
- name: Generate docs
run: |
commit=$(git -C systeminformer rev-list HEAD -- phnt/include | head -n 1)
cd main
python -u generate_docs.py --path ../systeminformer/phnt/include --commit $commit
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./main/docs
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'