-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.02 KB
/
github-page.yaml
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
name: github pages
on:
push:
branches:
- master
paths:
- "src/**"
- mkdocs.yaml
pull_request:
workflow_dispatch:
jobs:
deploy:
name: GitHub Pages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
# let git-revision-date-localized-plugin collect correctly
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.9
cache: "pip"
- name: Install dependencies
run: |
pip install mkdocs
mkdocs --version
pip install mkdocs-material
pip install mkdocs-git-revision-date-localized-plugin
pip install mkdocs-mermaid2-plugin
pip install mkdocs-blogging-plugin
pip install mdx_truly_sane_lists
pip install -e lib
- name: Build
if: ${{ github.ref != 'refs/heads/master' }}
run: mkdocs build
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
run: mkdocs gh-deploy