-
Notifications
You must be signed in to change notification settings - Fork 46
48 lines (40 loc) · 1.02 KB
/
doc.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
44
45
46
47
48
name: docs
on:
pull_request:
types: [closed]
branches:
- master
jobs:
doc:
runs-on: ubuntu-latest
container:
image: analysiscenter1/ds-py3
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build docs
run: |
export LC_ALL="C"
pip3 install sphinx
pip3 install sphinx-rtd-theme
git checkout --orphan gh-pages
rm -rf *
git fetch
git reset
git clean -fdx
git checkout ${{ github.sha }} -- batchflow docs
cd docs
make html
- name: Push docs
if: github.event_name == 'pull_request'
run: |
mv docs/_build/html/* .
rm -rf docs batchflow
touch .nojekyll
git config user.email [email protected]
git config user.name "Roman Kh"
git add -A .
git commit -am "Build docs"
git remote add gh_pages https://${{ secrets.GITHUB_PUSH}}@github.com/${{ github.repository }}
git push -f gh_pages gh-pages