-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.04 KB
/
documentation.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
name: Documentation
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
# https://stackoverflow.com/a/58008902
docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
# check out sources that will be used for autodocs, plus readme
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
# didn't need to change anything here, but had to add sphinx.ext.githubpages
# to my _config.yml extensions list. that fixes the broken uploads
- name: Run JupyterBook
run: |
make docs_cicd
# jupyter-book build docs/
# jupyter-book build docs/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html