-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.08 KB
/
latest_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
name: latest_docs
on:
push:
branches:
- master
jobs:
latest_docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out source 🛒
uses: actions/checkout@v3
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Poetry 📜
run: pip install poetry
- name: Eyeball native environment 👀
run: python --version ; pip --version ; poetry --version ; pwd ; ls -la
- name: Install package dependencies 📜
run: poetry install
- name: Install docs dependencies 📜
run: poetry run pip install -r docs/requirements.txt
- name: Build HTML 🏗️
run: poetry run sphinx-build -b html docs/source docs/build/html
- name: Deploy HTML to GitHub Pages 🚀
uses: peaceiris/actions-gh-pages@v3.9.3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
destination_dir: latest