-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Yang
committed
Feb 27, 2021
1 parent
78375ce
commit 5909545
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: pdoc | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
pdoc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- run: git clone https://github.com/pytorch/ignite | ||
- run: pip install pip wheel setuptools -U --progress-bar off | ||
- run: pip install pdoc --progress-bar off -U | ||
- run: | | ||
pip install . -f https://download.pytorch.org/whl/cpu/torch_stable.html --progress-bar off | ||
pdoc -o ./docs/build/html ignite -d google | ||
working-directory: ignite | ||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build/html | ||
publish_branch: gh-pages | ||
commit_message: Deploy pytorch/ignite pdoc docs |