v1.9.5 #53
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: Build & Publish to PyPI | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write # needed for PyPI trusted publisher | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Hatch | |
| run: pip install hatch | |
| - name: Build package | |
| run: hatch build | |
| - name: Test package | |
| run: hatch test | |
| - name: Publish package to PyPI | |
| uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3 |