-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (35 loc) · 1007 Bytes
/
publish-docs.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
37
38
39
40
41
42
name: publish-docs
on:
push:
branches: [master]
jobs:
publish-docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.6.15
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Install Poetry
run: pip install poetry==1.1.15
- name: Cache Poetry virtualenv
uses: actions/cache@v2
id: poetry-cache
with:
path: ~/.cache/pypoetry
key: poetry-3.6-${{ hashFiles('poetry.lock', 'pyproject.toml') }}
restore-keys: poetry-3.6-
- name: Install App and Dependencies
run: poetry install
- name: Build Docs
run: poetry run build-docs
- name: Push to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs