Merge pull request #4 from danfimov/add-first-project-version #1
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: Release PyPI Package | |
| on: | |
| push: | |
| tags: | |
| # Publish on any tag starting with a `v`, e.g. v1.2.3 | |
| - v* | |
| jobs: | |
| pypi: | |
| name: Publish to PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0 | |
| with: | |
| enable-cache: false | |
| python-version: "3.12" | |
| version: "latest" | |
| - run: uv version "${GITHUB_REF_NAME}" | |
| - run: uv build | |
| - run: uv publish --trusted-publishing always |