-
Notifications
You must be signed in to change notification settings - Fork 66
54 lines (45 loc) · 1.14 KB
/
gh-pages.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
51
52
53
54
name: Publish GitHub Pages
on:
push:
branches: [ main ]
jobs:
gh-pages-build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3.5.0
with:
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install tox 🧰
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Generate HTML 🛠
run: tox -e docs
- name: Upload Site 🔺
uses: actions/upload-artifact@v4.4.0
with:
name: pdoc3-html
path: pdoc3-html/ploigos_step_runner
gh-pages-deploy:
needs:
- gh-pages-build
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3.5.0
- name: Download Site 🔻
uses: actions/download-artifact@v4.1.8
with:
name: pdoc3-html
path: pdoc3-html/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: "pdoc3-html"