Publish to PyPI #4
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: Publish to PyPI | ||
| on: | ||
| release: | ||
| types: [published] | ||
| jobs: | ||
| tests: | ||
| uses: ./.github/workflows/test.yml | ||
|
Check failure on line 9 in .github/workflows/publish.yml
|
||
| release: | ||
| runs-on: ubuntu-latest | ||
| needs: tests | ||
| if: needs.tests.result == 'success' | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@v4 | ||
| - name: Setup uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| - name: Build package with uv | ||
| run: uv build | ||
| - name: Publish package distributions to PyPI with uv | ||
| run: uv publish -t ${{ secrets.PYPI_TOKEN }} | ||