-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.03 KB
/
docs.yaml
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: Publish Sphinx Documentation
# on:
# push:
# branches:
# - main
jobs:
publish_sphinx_docs:
runs-on: ubuntu-latest
permissions:
contents: write
# Do not ignore bash profile files. From:
# https://github.com/marketplace/actions/setup-miniconda
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: splendor
environment-file: environment.yaml
- name: Install Splendor
run: |
pip install .
- name: Sphinx build
run: |
sphinx-build docs docs/_build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
force_orphan: true