| 1 | name: Release |
| 2 | |
| 3 | on: |
| 4 | release: |
| 5 | types: [ published ] |
| 6 | |
| 7 | jobs: |
| 8 | build-and-publish: |
| 9 | runs-on: ubuntu-latest |
| 10 | steps: |
| 11 | - uses: actions/checkout@v5 |
| 12 | - uses: ./.github/actions/python-poetry-env |
| 13 | - name: Publish to pypi |
| 14 | run: | |
| 15 | poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} |
| 16 | poetry publish --build --no-interaction |
| 17 | - name: Deploy docs |
| 18 | run: poetry run mkdocs gh-deploy --force |