-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (38 loc) · 1013 Bytes
/
document.yml
File metadata and controls
41 lines (38 loc) · 1013 Bytes
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: Document
on:
workflow_run:
branches: [root]
types: [completed]
workflows: [Test]
permissions:
contents: write
jobs:
pages:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ['3.13']
steps:
- name: Clone Repository
uses: actions/checkout@v3
- name: Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Build
run: |
python -m pip install -e ../.[doc]
mkdir _static
make clean
make html
working-directory: ./docs
- name: Deploy to Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/
force_orphan: true