-
Notifications
You must be signed in to change notification settings - Fork 46
43 lines (39 loc) · 1.25 KB
/
deploy_docs.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
name: Deploy docs
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
env:
working-directory: ./tribits/doc/sphinx
tribits-base-dir: /home/runner/work/TriBITS/TriBITS
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
python3 -c "import sys; print(sys.version)"
- name: Install Python dependencies
run: |
pip3 install sphinx sphinx-rtd-theme
- name: Build documentation
working-directory: ${{env.working-directory}}
run: |
git fetch --prune --unshallow --tags
python3 sphinx_rst_generator.py --copy-base-dir=${{env.tribits-base-dir}}
- name: Generate nojekyll file
working-directory: ${{env.working-directory}}/combined_docs
run: touch .nojekyll
- name: Deploy docs
uses: JamesIves/[email protected]
with:
branch: deploy-doc-site
folder: ${{env.working-directory}}/combined_docs
clean: true