-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 906 Bytes
/
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
name: docs
on:
release:
types: [published]
tags:
- 'v*'
jobs:
docs:
name: Create docs for GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2.3.2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r req-doc.txt
- name: Sphinx Build
run: |
cd docs
sphinx-build -b html . _build
- name: Upload to Github Pages
uses: crazy-max/ghaction-github-pages@v2.6.0
with:
build_dir: docs/_build/
target_branch: gh-pages
jekyll: false
committer: Wojciech Wentland <wojciech.wentland@int.pl>
author: Wojciech Wentland <wojciech.wentland@int.pl>
env:
GITHUB_TOKEN: ${{ secrets.DOCS_TOKEN }}