Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 (#104) #211
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
name: Docs | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
deploy-docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# fecth all history so that setuptools-scm works | |
fetch-depth: 0 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install sphinx sphinx-intl sphinx_rtd_theme | |
python setup.py sdist --formats=zip | |
pip install dist/* | |
- name: Build documentation | |
run: make doc | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/[email protected] | |
# Only deploy on master branch | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./docs/_build/html |