-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (41 loc) · 1.21 KB
/
publish-doc.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
name: Publish Documentation
on:
workflow_dispatch:
#release:
# types: [published]
push:
branches:
- master
paths:
- '**.md' # runs only if a markdown file is pushed
- 'mkdocs.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.7'
architecture: 'x64'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip # install pip
python3 -m pip install mkdocs # install mkdocs
python3 -m pip install mkdocs-material # install material theme
python3 -m pip install mkdocs-git-revision-date-plugin
python3 -m pip install mkdocs-exclude-search
- name: Build site
run: |
mkdocs build
ls
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs_site
cname: mithrilshards.mithrilman.com