-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 988 Bytes
/
deploy.yml
File metadata and controls
33 lines (33 loc) · 988 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
name: Deploy documentation
on:
push:
branches: [mkdocs]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs
python3 -m pip install mkdocs-cinder
python3 -m pip install https://github.com/bmcorser/fontawesome-markdown/archive/master.zip
- name: Build the site
run: mkdocs build
- name: Create .nojekyll file
run: touch ./site/.nojekyll
- name: Copy README.md
run: cp README.md ./site
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./site