From 432ba22c34e7c529ebcd2c3a46e1a0e47319984b Mon Sep 17 00:00:00 2001 From: NowanIlfideme Date: Sun, 15 Jun 2025 18:33:33 +0200 Subject: [PATCH] Ensure we build and add the build files to the release. --- .github/workflows/tag-on-release-branch.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tag-on-release-branch.yml b/.github/workflows/tag-on-release-branch.yml index 3703e53..43305f0 100644 --- a/.github/workflows/tag-on-release-branch.yml +++ b/.github/workflows/tag-on-release-branch.yml @@ -40,6 +40,7 @@ jobs: run: | version="${{ steps.detect.outputs.version }}" uv version $version + git config user.name "github-actions" git config user.email "github-actions@github.com" git commit -am "🔖 Set final version $version" @@ -51,11 +52,22 @@ jobs: git tag v$version git push origin v$version + - name: Install dependencies and build (to upload) + run: | + uv sync --all-extras + uv build + - name: Create GitHub Release (draft) uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.detect.outputs.version }} name: v${{ steps.detect.outputs.version }} + files: dist/* draft: true + prerelease: ${{ contains(steps.detect.outputs.version, 'rc') }} # will be `false` but helpful if reused env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish to TestPyPI + run: | + uv publish --index testpypi --trusted-publishing always