File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build-docs :
13
- runs-on : ubuntu-latest
13
+ runs-on : ubuntu-18.04
14
+ container :
15
+ image : docker.pkg.github.com/nvidia/trtorch/docgen:latest
16
+ credentials :
17
+ username : $GITHUB_ACTOR
18
+ password : ${{secrets.GITHUB_TOKEN}}
14
19
steps :
15
20
- uses : actions/checkout@v2
16
21
with :
17
22
ref : ${{github.head_ref}}
18
- - name : Docker login
19
- run : docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
20
- env :
21
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
22
- - name : Run image
23
- run : docker run -it -d --name builder -v $GITHUB_WORKSPACE:/workspace -w /workspace docker.pkg.github.com/nvidia/trtorch/docgen:latest
24
- - name : Build python package
25
- run : docker exec builder bash -c "cp docker/WORKSPACE.docs WORKSPACE && cd py && python3 setup.py install"
26
- - name : Generate new docs
27
- run : docker exec builder bash -c "cd docsrc && make html"
23
+ - name : Build Python Package
24
+ run : |
25
+ cp docker/WORKSPACE.docs WORKSPACE
26
+ cd py
27
+ python3 setup.py install
28
+ - name : Generate New Docs
29
+ run : |
30
+ cd docsrc
31
+ make html
28
32
- uses : stefanzweifel/git-auto-commit-action@v4
29
33
with :
30
34
# Required
You can’t perform that action at this time.
0 commit comments