chore: update shared files #83
This file contains 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: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
- 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@v4 | |
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/* | |
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
run: uv publish --verbose --verbose --trusted-publishing always |