From b152081b2404df86b84c95c9b25fd3ed743bd592 Mon Sep 17 00:00:00 2001 From: Github Date: Mon, 12 Aug 2024 11:14:27 -0600 Subject: [PATCH] Use `github.event.release.tag_name` instead of `github.ref_name` for release --- .github/workflows/platformDeploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 397122930652..b481c71014ce 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -88,7 +88,7 @@ jobs: - name: Archive Android sourcemaps uses: actions/upload-artifact@v4 with: - name: android-sourcemap-${{ github.ref_name }} + name: android-sourcemap-${{ github.event.release.tag_name }} path: android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map - name: Upload Android build to GitHub artifacts @@ -179,7 +179,7 @@ jobs: - name: Archive desktop sourcemaps uses: actions/upload-artifact@v4 with: - name: desktop-sourcemap-${{ github.ref_name }} + name: desktop-sourcemap-${{ github.event.release.tag_name }} path: desktop/dist/www/merged-source-map.js.map iOS: @@ -260,7 +260,7 @@ jobs: - name: Archive iOS sourcemaps uses: actions/upload-artifact@v4 with: - name: ios-sourcemap-${{ github.ref_name }} + name: ios-sourcemap-${{ github.event.release.tag_name }} path: main.jsbundle.map - name: Upload iOS build to GitHub artifacts @@ -353,7 +353,7 @@ jobs: - name: Archive web sourcemaps uses: actions/upload-artifact@v4 with: - name: web-sourcemap-${{ github.ref_name }} + name: web-sourcemap-${{ github.event.release.tag_name }} path: dist/merged-source-map.js.map - name: Purge Cloudflare cache @@ -365,7 +365,7 @@ jobs: if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} run: | DOWNLOADED_VERSION="$(wget -q -O /dev/stdout https://staging.new.expensify.com/version.json | jq -r '.version')" - if [[ '${{ github.ref_name }}' != "$DOWNLOADED_VERSION" ]]; then + if [[ '${{ github.event.release.tag_name }}' != "$DOWNLOADED_VERSION" ]]; then echo "Error: deployed version does not match local version. Something went wrong..." exit 1 fi