-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (42 loc) · 1.16 KB
/
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
42
43
44
45
46
47
48
name: Documentation
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# Build job
build:
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: docs-env
environment-file: docs/requirements.yml
python-version: ${{ matrix.cfg.python-version }}
miniforge-variant: Mambaforge
use-mamba: true
add-pip-as-python-dependency: true
channels: conda-forge
- name: Conda Environment
run: |
mamba info
mamba list
- name: Build Documentation
run: |
cd docs
make html
- name: GitHub Pages Deploy
uses: JamesIves/[email protected]
if: github.event_name == 'push' && github.repository == 'CCQC/PES-Learn' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
with:
branch: gh-pages
folder: docs/build/html