From 24031710ec93dbfbfa9639a4162ebf9f0ea0f02a Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Thu, 11 Jul 2024 12:54:03 -0700 Subject: [PATCH] CI-CD: Fix gh release target `gh release --target` no longer accepts a full ref (and has never allowed a tag). It needs either a branch or a sha. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11461d24..7f4315e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: NOTES: | [Changelog](https://anymail.dev/en/stable/changelog/#${{ steps.version.outputs.anchor }}) run: | - if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"; then - gh release create "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES" + if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"; then + gh release create "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES" fi gh release upload "$TAG" ./dist/*