-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (28 loc) · 879 Bytes
/
docs.yml
File metadata and controls
33 lines (28 loc) · 879 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
name: Docs
permissions:
contents: read
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: "Set up Python 3.10"
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Python dependencies
run: pip install -r requirements-doc.txt
- name: Install mpl-gui
run: python -m pip install -v .
- name: Build
run: make -Cdocs singlehtml
- name: Publish
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/singlehtml
force_orphan: true