File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 14
14
matrix :
15
15
python : ["3.7", "3.10"]
16
16
os : [ubuntu-latest, macos-latest, windows-latest]
17
+ include :
18
+ - os : ubuntu-latest
19
+ python : 3.10
20
+ docsTarget : true
17
21
runs-on : ${{ matrix.os }}
18
22
steps :
19
23
- name : Print build information
37
41
- run : poe build-develop
38
42
- run : poe test -s -o log_cli_level=DEBUG
39
43
44
+ # Do docs stuff (only on one host)
45
+ - name : Build API docs
46
+ if : ${{ matrix.docsTarget }}
47
+ run : poe gen-docs
48
+ - name : Deploy prod API docs
49
+ if : ${{ github.ref == 'refs/heads/main' && matrix.docsTarget }}
50
+ uses : netlify/actions/cli@master
51
+ with :
52
+ args : deploy --dir=build/apidocs --prod
53
+ env :
54
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
55
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
56
+ - name : Deploy draft API docs
57
+ if : ${{ github.ref != 'refs/heads/main' && matrix.docsTarget }}
58
+ uses : netlify/actions/cli@master
59
+ with :
60
+ args : deploy --dir=build/apidocs
61
+ env :
62
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
63
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
64
+
40
65
# Compile the binaries and upload artifacts
41
66
compile-binaries :
42
67
strategy :
You can’t perform that action at this time.
0 commit comments