forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.1 KB
/
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
43
44
45
46
47
48
# For more information on how to use this template please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html
name: docs
on:
push:
branches:
- master
schedule:
- cron: '10 0 * * 0'
workflow_dispatch: # Manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: tardis_env3.yml
activate-environment: tardis
use-mamba: true
- name: Install TARDIS
shell: bash -l {0}
run: python setup.py install
- name: Build Sphinx Documentation
shell: bash -l {0}
run: cd docs/; make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/
publish_branch: gh-pages
force_orphan: true