1.0.1 #2
Workflow file for this run
This file contains hidden or 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: Package and publish | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Setup Python 3.13 | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.13" | |
| - name: Install Poetry | |
| run: pipx install poetry --python $(which python) | |
| - name: Install project | |
| run: poetry install | |
| - name: Test with tox | |
| run: poetry run tox | |
| - name: Build package | |
| run: poetry build | |
| - name: Publish package | |
| env: | |
| PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
| run: poetry publish -u __token__ -p "$PYPI_API_TOKEN" |