-
Notifications
You must be signed in to change notification settings - Fork 196
46 lines (43 loc) · 1006 Bytes
/
docsite.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: Build and Publish docsite
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build Mkdocs website
runs-on: ubuntu-20.04
strategy:
max-parallel: 1
container:
image: squidfunk/mkdocs-material
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: mkdocs build -s
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: site
path: site
publish:
needs: build
name: Publish Mkdocs website to GH Pages
runs-on: ubuntu-20.04
strategy:
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: site
path: site
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: mkdocs
publish_dir: site
github_token: ${{ secrets.GITHUB_TOKEN }}