-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 966 Bytes
/
docs.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
name: Sphinx build
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs.yml"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
activate-environment: hprepo
environment-file: hp_environment.yml
- name: install
run: |
conda env list
conda info
conda list
conda install -c conda-forge pip
pip install --upgrade -e .
conda list
- name: Installing the Documentation requirements
run: |
pip install sphinx sphinx_rtd_theme
- name: Deploy
uses: uibcdf/action-sphinx-docs-to-gh-pages@main
with:
branch: main
dir_docs: docs/source