-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.09 KB
/
docs.yml
File metadata and controls
39 lines (37 loc) · 1.09 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
name: Building docs
on:
push:
branches: [master]
jobs:
test-cpp:
runs-on: "ubuntu-latest"
name: Generate docs
#shell: bash -l {0}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: pypruning
environment-file: environment.yml
- name: Generate the docs
run: |
cd docs/
make html
rm -rf api html latex xml make.bat Doxyfile.bat
mv _build/html html
rm -rf _build
- name: Commit documentation # transfer the new html files back into the repository
run: |
git config --local user.name "sbuschjaeger"
git add docs/*
git commit -m "Added documentation" || echo "Nothing to update"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}