From 9ba2324b0de07cc5ea6b4608f57e7c9d3467c638 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 14 Nov 2025 10:22:04 -0800 Subject: [PATCH] Fix publishing a github release With immutable releases the old action doesn't work, so try using the `gh` CLI instead. --- .github/actions/publish-release/action.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 6687243ce8..cd3b42ded5 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -58,12 +58,11 @@ runs: GH_TOKEN: ${{ github.token }} # Conditionally make a release if a tag was made. - - uses: softprops/action-gh-release@v1 - if: steps.tag.outputs.push_tag == 'yes' - with: - files: "dist/*" - generate_release_notes: true - tag_name: v${{ steps.tag.outputs.version }} + - if: steps.tag.outputs.push_tag == 'yes' + shell: bash + run: gh release create --generate-notes v${{ steps.tag.outputs.version }} dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Generate attestations for release artifacts - name: Generate artifact attestation