-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1016 Bytes
/
deploy.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
name: Deploy Docs
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python envs
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd docs
python -m pip install --upgrade pip
python -m pip install -r requirements-doc.txt
- name: Build website
run: |
cd docs
sphinx-build -b html ./ ./_build/html
touch ./_build/html/.nojekyll
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "docs/_build/html"
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2