diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 8dd5df2..7265e79 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -25,6 +25,7 @@ jobs: outputs: releases_created: ${{ steps.release-main.outputs.releases_created }} paths_released: ${{ steps.release-main.outputs.paths_released }} + tag_name: ${{ steps.release-main.outputs.tag_name }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -49,8 +50,10 @@ jobs: if: ${{ needs.release-please.outputs.releases_created == 'true' }} runs-on: ubuntu-latest steps: + # Build the release tag, not the commit that triggered this run - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + ref: refs/tags/${{ needs.release-please.outputs.tag_name }} persist-credentials: false - name: Install uv