chore(deps): update astral-sh/setup-uv action to v6 #101
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: Release | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0 | |
- run: uv build | |
- name: Verify wheel install | |
run: | | |
uv venv .venv-install-whl | |
source .venv-install-whl/bin/activate | |
uv pip install dist/*.whl | |
- name: Verify source install | |
run: | | |
uv venv .venv-install-tar | |
source .venv-install-tar/bin/activate | |
uv pip install dist/*.tar.gz | |
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
with: | |
name: dist | |
path: | | |
dist/*.tar.gz | |
dist/*.whl | |
- run: uvx twine check dist/* | |
- run: uvx pydistcheck --inspect dist/* | |
- run: uvx pyroma dist/*.tar.gz | |
- run: uvx check-wheel-contents dist/*.whl | |
- run: uvx check-manifest -v | |
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
run: uv publish --trusted-publishing always |