-
-
Notifications
You must be signed in to change notification settings - Fork 26
39 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
name: Deploy docs
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
uses: snok/install-poetry@v1
- name: Cache poetry
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}-python-3.8
- run: poetry --version
- name: Install dependencies
run: poetry install
# Do not use caching (anymore)
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Build docs
run: poetry run pdoc3 --template-dir docs/pdoc_template/ --output-dir docs --html tsflex/
- name: Deploy docs
env:
GH_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: .github/deploy-gh-pages.sh