-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (37 loc) · 1.07 KB
/
documentation.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: Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
concurrency: documentation
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
token: ${{ secrets.SPHINX_DOCUMENTATION }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install ".[docs,all,tutorials]"
pip install -r ./docs/tutorials/requirements.txt
- name: Create augmenters table
shell: bash
run: |
python ./docs/create_augmenters_table.py
- name: Build and Commit
uses: sphinx-notes/[email protected]
with:
documentation_path: docs
sphinx_version: "5.3.0"
- name: Push changes
if: ${{ github.event_name == 'push' }}
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.SPHINX_DOCUMENTATION }}
branch: gh-pages