Skip to content

Commit

Permalink
build: publish python API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivelin Ivanov authored Mar 26, 2021
1 parent 1bf4926 commit 21e426e
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,27 @@ jobs:
echo ${{ steps.semrel.outputs.new_release_version }}
echo ${{ steps.semrel.outputs.new_release_major_version }}
echo ${{ steps.semrel.outputs.new_release_minor_version }}
echo ${{ steps.semrel.outputs.new_release_patch_version }}
echo ${{ steps.semrel.outputs.new_release_patch_version }}
publish_docs:
needs: [push_release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pdoc3
- name: Run build script
run: |
pdoc --html src/ambianic
- name: Deploy to github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html

0 comments on commit 21e426e

Please sign in to comment.