| 1 | name: Publish |
| 2 | |
| 3 | on: |
| 4 | release: |
| 5 | types: |
| 6 | - created |
| 7 | |
| 8 | jobs: |
| 9 | publish: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v4 |
| 13 | - name: Install poetry |
| 14 | run: pipx install poetry |
| 15 | - uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: 3.12 |
| 18 | cache: poetry |
| 19 | - run: poetry install |
| 20 | - run: poetry publish --build |
| 21 | env: |
| 22 | POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} |
| 23 |