forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1020 Bytes
/
documentation-build.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
# For more information on how to use this template please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html
name: documentation-build
on:
push:
branches:
- master
schedule:
- cron: '10 0 * * 0'
jobs:
documentation_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup TARDIS Environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: tardis_env3.yml
activate-environment: tardis
channels: conda-forge
mamba-version: "*"
- name: Install TARDIS
shell: bash -l {0}
run: python setup.py install
- name: Build Sphinx Documentation
shell: bash -l {0}
run: python setup.py build_docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/
publish_branch: gh-pages