-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.44 KB
/
documentation.yaml
File metadata and controls
33 lines (32 loc) · 1.44 KB
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
# Action to deploy the mkdocs documentation to the branch gh-pages.
name: On Push Deploy Documentation # Name of the workflow
on: push # Events that trigger the workflow
# push:
# branches:
# - main
# - wip-release
# Jobs
jobs: # Jobs to run
deploy: # Name of the job
name: deploy-documentation
runs-on: ubuntu-latest # Operating system to run the job on
steps: # Steps to run
- name: Checkout repo # Name of the step
uses: actions/checkout@v2 # Action to run
- name: Set up Python # Name of the step
uses: actions/setup-python@v2 # Action to run
with: # Inputs for the action
python-version: 3.7.13 # Version of Python to use
- name: Caching # Name of the step
uses: actions/cache@v2 # Action to run
with: # Inputs for the action
path: $/{/{ env.pythonLocation /}/} # Path to cache
key: $/{/{ env.pythonLocation /}/}-$/{/{ hashFiles('setup.py') /}/}-$/{/{ hashFiles('requirements.txt') /}/} # Key to use for restoring and saving the cache
- name: Install dependencies # Name of the step
run: | # Command to run
python -m pip install --upgrade pip
pip install mkdocs
pip install mkdocs-material
pip install pymdown-extensions
- name: Deploy documentation # Name of the step
run: mkdocs gh-deploy --clean --force --verbose # Command to run