forked from DataDog/stratus-red-team
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 982 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
35
36
name: generate-docs
on:
workflow_dispatch: {} # allow manually triggering the workflow
push:
branches:
- main
paths:
- "docs/**"
- mkdocs.yml
- "tools/**"
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@91182cccc01eb5e619899d80e4e971d6181294a7
with:
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
*.actions.githubusercontent.com:443
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-awesome-pages-plugin
- run: mkdocs gh-deploy --force