diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index f88c425..ac686f8 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -1,5 +1,3 @@ -# .github/workflows/publish-to-pypi.yml - name: Publish to PyPI on: @@ -14,11 +12,16 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + with: + ref: "refs/tags/${{ github.event.release.tag_name }}" - name: Install uv uses: astral-sh/setup-uv@v3 with: enable-cache: true + - name: Build Package + run: uv build + - name: Publish Package run: uv publish