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 1414 matrix :
1515 python : ["3.7", "3.10"]
1616 os : [ubuntu-latest, macos-latest, windows-latest]
17+ include :
18+ - os : ubuntu-latest
19+ python : 3.10
20+ docsTarget : true
1721 runs-on : ${{ matrix.os }}
1822 steps :
1923 - name : Print build information
3741 - run : poe build-develop
3842 - run : poe test -s -o log_cli_level=DEBUG
3943
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+
4065 # Compile the binaries and upload artifacts
4166 compile-binaries :
4267 strategy :
You can’t perform that action at this time.
0 commit comments