-
Notifications
You must be signed in to change notification settings - Fork 47
34 lines (31 loc) · 932 Bytes
/
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
name: generate-docs
on:
workflow_dispatch: {} # allow manually triggering the workflow
push:
branches:
- main
paths:
- "docs/**"
- mkdocs.yml
permissions:
contents: read
jobs:
deploy:
permissions:
contents: write # for mkdocs gh-deploy to publish docs
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-awesome-pages-plugin markdown-captions
- run: mkdocs gh-deploy --force