Skip to content

Commit 19d301b

Browse files
authored
Update docgen.yml
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent dd421dd commit 19d301b

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/docgen.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,25 @@ on:
1010

1111
jobs:
1212
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}}
1419
steps:
1520
- uses: actions/checkout@v2
1621
with:
1722
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
2832
- uses: stefanzweifel/git-auto-commit-action@v4
2933
with:
3034
# Required

0 commit comments

Comments
 (0)