-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 899 Bytes
/
main.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: CI
# when to run the CI jobs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# enable manual dispatch
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
# Checkout the current state of the repository
- name: Checkout
uses: actions/checkout@v3
# Setup Python and dependencies defined in requirements.txt
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: 'pip'
- run: pip install -r requirements.txt
# Run Sphinx
- name: Build documentation (and run doctests)
run: |
cd docs/
make html
# Upload html to gh-pages branch (where I manually committed a .nojekyll file)
- name: Deploy documentation on GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: "docs/_build/html"