-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1018 Bytes
/
doc_builder.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
name: "Build Documentation"
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
poetry-version: [1.1.5]
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Prep dependencies
run: poetry install
- name: Build docs
run: poetry run sphinx-build docs ./genDocs
- name: Deploy Documentation
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'HaoZeke/wailord') || (github.ref == 'refs/heads/master' && github.repository == 'HaoZeke/wailord')}}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./genDocs