-
Notifications
You must be signed in to change notification settings - Fork 46
53 lines (39 loc) · 1.14 KB
/
publish-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
49
50
51
52
53
on: [push, pull_request]
name: "Documentation Status"
permissions:
contents: write
jobs:
build-and-publish:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- name: Session information
run: |
python --version
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs.prefer-active-python: true
- name: 🔩 list Poetry settings
run: poetry config --list
- name: 🔩 Install with Poetry
run: poetry install --all-extras --with docs
- name: Build documentation
run: |
cd docs
poetry run bash autogen_docs.sh
poetry run make html
- name: Deploy to GitHub pages 🚀
# Deploy only when master changes
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs/_build/html