-
Notifications
You must be signed in to change notification settings - Fork 40
26 lines (26 loc) · 708 Bytes
/
gh.yml
File metadata and controls
26 lines (26 loc) · 708 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
name: gh-pages
on:
workflow_run:
workflows: ["ci"]
branches: [main]
types:
- completed
jobs:
deploy-gh-pages:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
pip install ghp-import
- name: make html
working-directory: docs
run: make html
- name: Deploy Documentation
run: |
pip install ghp-import
ghp-import -n -p -m "Documentation git hash $(git rev-parse --short HEAD)" -f docs/_build/html