forked from janezpodhostnik/flow-py-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 858 Bytes
/
docs.yml
File metadata and controls
35 lines (33 loc) · 858 Bytes
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
name: Docs
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'docs/**'
- 'mkdocs.yml'
jobs:
lint:
name: MkDocs Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Poetry
uses: abatilo/actions-poetry@v2.0.0
- name: Poetry - Cache
id: poetry-cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Poetry - Install
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: poetry install
- name: Poetry - mkdocs deploy
run: poetry run mkdocs gh-deploy --force