-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.67 KB
/
docs.yml
File metadata and controls
51 lines (49 loc) · 1.67 KB
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
name: Publish docs
on:
push:
branches: [ develop ]
release:
types: [published]
jobs:
docs:
name: Build and push docs to GH pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Set up Python 3"
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: "Install dependencies"
run: |
pip install -r requirements_manager.txt
pip install -r requirements_sdk.txt
pip install -r requirements_docs.txt
pip install .
- name: "Install pandoc"
run: |
wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb
sudo dpkg -i pandoc-2.11.4-1-amd64.deb
rm pandoc-2.11.4-1-amd64.deb
- name: Build docs
run: |
cd docs
sphinx-multiversion source/ build/html/
touch build/html/.nojekyll
python render_redirect_index_html_file.py
- name: Debug output
run: |
ls docs/build/html
cat docs/build/html/index.html
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@master
env:
API_TOKEN_GITHUB: ${{ secrets.VA_GITHUB_TOKEN }}
with:
source-directory: 'docs/build/html'
destination-github-username: 'vikinganalytics'
destination-repository-name: 'daeploy-docs'
target-branch: 'gh-pages'
user-email: develop@vikinganalytics.se