Skip to content

Shift documentation deployment from ReadTheDocs to GitHub Pages #24

Shift documentation deployment from ReadTheDocs to GitHub Pages

Shift documentation deployment from ReadTheDocs to GitHub Pages #24

Workflow file for this run

name: PyPI publish
on:
push:
branches:
- main
release: # This will publish on every release
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.2
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Publish to PyPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build --no-interaction && echo "published=1" >> "$GITHUB_ENV" || echo "published=0" >> "$GITHUB_ENV"