From e63aaec682cf0f6e0efc00d00113d56db0a41d1d Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Fri, 11 Apr 2025 11:06:11 -0600 Subject: [PATCH 1/2] Create the pre-release using the new staging tag suffix --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5b61d011365e2..1f8f36e84f043 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -595,10 +595,10 @@ jobs: - name: 🚀 Create prerelease 🚀 run: | - gh release create ${{ needs.prep.outputs.APP_VERSION }} --repo ${{ github.repository }} --title ${{ needs.prep.outputs.APP_VERSION }} --generate-notes --prerelease --target staging + gh release create ${{ needs.prep.outputs.APP_VERSION }}-staging --repo ${{ github.repository }} --title ${{ needs.prep.outputs.APP_VERSION }} --generate-notes --prerelease --target staging RETRIES=0 MAX_RETRIES=10 - until [[ $(gh release view ${{ needs.prep.outputs.APP_VERSION }} --repo ${{ github.repository }}) || $RETRIES -ge $MAX_RETRIES ]]; do + until [[ $(gh release view ${{ needs.prep.outputs.APP_VERSION }}-staging --repo ${{ github.repository }}) || $RETRIES -ge $MAX_RETRIES ]]; do echo "release not found, retrying $((MAX_RETRIES - RETRIES++)) times" sleep 1 done @@ -786,7 +786,7 @@ jobs: if: ${{ always() && fromJSON(needs.checkDeploymentSuccess.outputs.IS_AT_LEAST_ONE_PLATFORM_DEPLOYED) }} needs: [prep, android, desktop, ios, web, checkDeploymentSuccess, createPrerelease, finalizeRelease] with: - version: ${{ needs.prep.outputs.APP_VERSION }} + version: ${{ needs.prep.outputs.APP_VERSION }}${{ github.ref != 'refs/heads/production' && '-staging' || '' }} env: ${{ github.ref == 'refs/heads/production' && 'production' || 'staging' }} android: ${{ needs.android.result }} ios: ${{ needs.ios.result }} From 9d829f25eed1c4ed557d402a2929bcfef9f847ad Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Fri, 11 Apr 2025 12:47:21 -0600 Subject: [PATCH 2/2] Add `--verify-tag` --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1f8f36e84f043..b816821566f1c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -595,7 +595,7 @@ jobs: - name: 🚀 Create prerelease 🚀 run: | - gh release create ${{ needs.prep.outputs.APP_VERSION }}-staging --repo ${{ github.repository }} --title ${{ needs.prep.outputs.APP_VERSION }} --generate-notes --prerelease --target staging + gh release create ${{ needs.prep.outputs.APP_VERSION }}-staging --repo ${{ github.repository }} --title ${{ needs.prep.outputs.APP_VERSION }} --generate-notes --prerelease --verify-tag --target staging RETRIES=0 MAX_RETRIES=10 until [[ $(gh release view ${{ needs.prep.outputs.APP_VERSION }}-staging --repo ${{ github.repository }}) || $RETRIES -ge $MAX_RETRIES ]]; do