Skip to content

Commit fab12d5

Browse files
authored
👷 Add GitHub action to deploy docs (#50)
1 parent fdb5b50 commit fab12d5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Deploy to Netlify
2+
on:
3+
push:
4+
pull_request:
5+
types: [opened, synchronize]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: "3.7"
15+
- name: Install Flit
16+
run: python3.7 -m pip install flit
17+
- name: Install docs extras
18+
run: python3.7 -m flit install --extras doc
19+
- name: Build MkDocs
20+
run: python3.7 -m mkdocs build
21+
- name: Deploy to Netlify
22+
uses: nwtgck/[email protected]
23+
with:
24+
publish-dir: './site'
25+
production-branch: master
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
env:
28+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
29+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)