forked from beekeeper-studio/beekeeper-studio
-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 948 Bytes
/
docs-deploy.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
name: Deploy Docs to Netlify
on:
push:
branches:
- master # or your default branch
paths-ignore:
- 'apps/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # or any specific version
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build site with mkdocs
run: mkdocs build
- name: Upload to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './site'
production-branch: master # or your default branch
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Deploy from GitHub Actions
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.DOCS_SITE_ID }}