Skip to content

Commit

Permalink
Create pdoc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Yang committed Feb 27, 2021
1 parent 78375ce commit 5909545
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pdoc.yml
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

0 comments on commit 5909545

Please sign in to comment.