-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (32 loc) · 927 Bytes
/
mkdocs.yml
File metadata and controls
40 lines (32 loc) · 927 Bytes
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
name: MKDocs documentation
on: [push, pull_request]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip3 install -r requirements.txt --upgrade; fi
- name: Build MKDocs
run: |
python3 tools/versioned-docs.py
- name: Upload docs result
uses: actions/upload-artifact@v1
with:
name: docs
path: build/site
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/site
cname: docs.supernovaengine.org