-
Notifications
You must be signed in to change notification settings - Fork 67
44 lines (35 loc) · 1.01 KB
/
deploy-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
43
44
name: Deploy Documentation
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'docs/*/*.md'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python3
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1.3
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
#----------------------------------------------
# Create documentation and deploy.
#----------------------------------------------
- name: Create local docs
run: |
touch docs/.nojekyll
poetry run make all_docs
poetry run make gh-deploy