Skip to content

Commit 5e69fe0

Browse files
authored
Merge pull request #196 from ndem0/github_action
Action for documentation deploy
2 parents 44f62d5 + 0b20dd1 commit 5e69fe0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/sphinx-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Deploy Documentation"
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup miniconda
15+
uses: goanpeca/setup-miniconda@v1
16+
with:
17+
auto-update-conda: true
18+
python-version: 3.7
19+
20+
- name: Conda install dependecies
21+
shell: bash -l {0}
22+
run: conda install --yes -c conda-forge pythonocc-core=7.4.0 numpy scipy matplotlib vtk nose setuptools coveralls python=3.7
23+
24+
- name: Conda info
25+
shell: pwsh
26+
run: conda info -a
27+
28+
- name: Create the new documentation
29+
uses: ammaraskar/sphinx-action@master
30+
with:
31+
docs-folder: "docs/"
32+
33+
- name: Deploy
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
#deploy_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
38+
publish_dir: ./docs/build/html
39+
allow_empty_commit: true

0 commit comments

Comments
 (0)