master to main branch change #26
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
# This workflow will build docs and push it to branch gh-pages | |
# For more information see: https://github.com/marketplace/actions/deploy-to-github-pages-python | |
name: Generate pdoc3 documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install livelossplot with dependencies | |
run: | | |
pip install -e . | |
- name: Install pdoc3 | |
run: | | |
pip install pdoc3 | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Generate docs | |
run: | | |
pdoc3 --html livelossplot --force --output-dir docs --skip-errors | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/livelossplot/ |