-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (37 loc) · 1.18 KB
/
deploy-mkdocs.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
40
41
42
43
44
45
46
47
name: Deploy mkdocs
# Controls when the workflow will run
on:
# Triggers the workflow on push request events in the main branch, but only for changes within mkdocs folder
push:
paths:
- 'mkdocs/**'
branches: [ master ]
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
# Workflow jobs
jobs:
build-and-deploy-docs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Tasks that will be executed as part of the job
steps:
# Checks-out repository
- uses: actions/checkout@v2
# Installs mkdocs
- name: install mkdocs
run: pip install mkdocs
# Installs material theme
- name: install material theme
run: pip install mkdocs-material
# Installs material theme
- name: install mkdocs markdown graphviz
run: pip install mkdocs-graphviz
# Installs material theme
- name: install mkdocs mermaid2 plugin
run: pip install mkdocs-mermaid2-plugin
# Builds docs
- name: build
run: cd mkdocs && mkdocs build
# Deploys docs
- name: deploy
run: cd mkdocs && mkdocs gh-deploy --force