File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
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
+
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 }}
You can’t perform that action at this time.
0 commit comments