From dab8df1a18e4cfe4f89692a0a9414280442e5b01 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 22 Sep 2025 17:09:13 +0200 Subject: [PATCH] github release workflow: use github context only if needed --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b120e748..9b9156588 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -195,8 +195,9 @@ jobs: ./build_tools/make_macos_pkg.sh -s -f /tmp/app.p12 \ -i /tmp/installer.p12 -p "$MAC_CODESIGN_PASSWORD" \ -n -j /tmp/notarize.json - [ -f "${FISH_ARTEFACT_PATH}/fish-${{ github.ref_name }}.app.zip" ] - [ -f "${FISH_ARTEFACT_PATH}/fish-${{ github.ref_name }}.pkg" ] + version=$(git describe) + [ -f "${FISH_ARTEFACT_PATH}/fish-$version.app.zip" ] + [ -f "${FISH_ARTEFACT_PATH}/fish-$version.pkg" ] rm /tmp/installer.p12 /tmp/app.p12 /tmp/notarize.json env: MAC_CODESIGN_APP_P12_BASE64: ${{ secrets.MAC_CODESIGN_APP_P12_BASE64 }} @@ -207,6 +208,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release upload $(git describe) \ - /tmp/fish-built/fish-${{ github.ref_name }}.app.zip \ - /tmp/fish-built/fish-${{ github.ref_name }}.pkg + version=$(git describe) + gh release upload $version \ + /tmp/fish-built/fish-$version.app.zip \ + /tmp/fish-built/fish-$version.pkg