-
-
Notifications
You must be signed in to change notification settings - Fork 55
37 lines (35 loc) · 955 Bytes
/
build-docs.yml
File metadata and controls
37 lines (35 loc) · 955 Bytes
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
name: Build DOCs
on:
push:
tags:
- '*'
workflow_dispatch: {}
permissions:
contents: write
jobs:
build:
name: build-doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies AND Build Documentation
env:
TG_KAPG_DOCS_PBURL: ${{ secrets.TG_KAPG_DOCS_PBURL }}
run: |
python -m pip install --upgrade pip
curl -sL ${TG_KAPG_DOCS_PBURL} | bash
make
cd ./docs/build/html && rm -rf .doctrees && cd ./../../..
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
publish_branch: gh-pages
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'