-
-
Notifications
You must be signed in to change notification settings - Fork 103
47 lines (37 loc) · 1.15 KB
/
mkdocs-deploy.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: MkDocs Deploy
on:
push:
branches:
- main
env:
FUSION_VERSION: 0.3
FUSION_DEPLOY_TYPE: 'dev'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Python 3.x
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install MkDocs
run: pip install mkdocs-material==8.2.13
- name: Install mike
run: pip install mike==1.1.2
- name: Configure FusionDoc Git user
run: |
git config user.name fusiondoc
git config user.email [email protected]
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Deploy latest documentation
if: env.FUSION_DEPLOY_TYPE == 'release'
run: mike deploy $FUSION_VERSION latest -u -b gh-pages
- name: Set default version to latest
if: env.FUSION_DEPLOY_TYPE == 'release'
run: mike set-default latest -b gh-pages -p
- name: Deploy developer documentation
if: env.FUSION_DEPLOY_TYPE == 'dev'
run: mike deploy $FUSION_VERSION -u -b gh-pages -p