v0.3.0 #5
Workflow file for this run
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
# Release a new version of the project to PyPI | |
# To trigger this workflow manually, run the following command: | |
# gh release create | |
name: Publish Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-publish: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
version: "latest" | |
enable-cache: true | |
- name: Sync Deps | |
run: uv sync | |
- name: Build | |
run: uv build | |
- name: Publish | |
run: uvx twine upload dist/* | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} |