-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (28 loc) · 894 Bytes
/
cd.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
name: CD
on:
push:
branches: [ master ]
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Install sphinx hydomain
run: poetry run pip install git+https://github.com/hylang/sphinxcontrib-hydomain.git
- name: Build documentation
working-directory: ./docs
run: poetry run make html
- name: Deploy docs to GH Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.