Skip to content

Commit

Permalink
Revert "Rename web and desktop sourcemaps artifacts before upload in …
Browse files Browse the repository at this point in the history
…order to have unique ReleaseAsset.name"

This reverts commit cce4b4d.
  • Loading branch information
rayane-d committed Sep 6, 2024
1 parent cce4b4d commit 26b28ec
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,21 +490,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Rename web and desktop sourcemaps artifacts before upload in order to have unique ReleaseAsset.name
run: |
mv ./desktop-sourcemaps/merged-source-map.js.map ./desktop-sourcemaps/desktop-merged-source-map.js.map
mv ./web-sourcemaps/merged-source-map.js.map ./web-sourcemaps/web-merged-source-map.js.map
- name: Upload artifacts to GitHub Release
run: |
gh release upload ${{ env.STAGING_VERSION }} \
./android-sourcemaps/index.android.bundle.map#android-sourcemap-${{ env.STAGING_VERSION }} \
./android-build/app-production-release.aab \
./desktop-sourcemaps/desktop-merged-source-map.js.map#desktop-sourcemap-${{ env.STAGING_VERSION }} \
./desktop-sourcemaps/merged-source-map.js.map#desktop-sourcemap-${{ env.STAGING_VERSION }} \
./desktop-build/NewExpensify.dmg \
./ios-sourcemaps/main.jsbundle.map#ios-sourcemap-${{ env.STAGING_VERSION }} \
./ios-build/New\ Expensify.ipa \
./web-sourcemaps/web-merged-source-map.js.map#web-sourcemap-${{ env.STAGING_VERSION }} \
./web-sourcemaps/merged-source-map.js.map#web-sourcemap-${{ env.STAGING_VERSION }} \
./web-build-tar-gz/webBuild.tar.gz \
./web-build-zip/webBuild.zip
env:
Expand Down Expand Up @@ -533,26 +528,18 @@ jobs:
if: ${{ github.ref == 'refs/heads/production' && fromJSON(needs.checkDeploymentSuccess.outputs.IS_AT_LEAST_ONE_PLATFORM_DEPLOYED) }}
needs: [checkDeploymentSuccess]
steps:
- name: Checkout production branch
uses: actions/checkout@v4
- uses: actions/checkout@v4
name: Checkout

- name: Get current app version
run: echo "PRODUCTION_VERSION=$(npm run print-version --silent)" >> "$GITHUB_ENV"

- name: Download all workflow run artifacts
uses: actions/download-artifact@v4

- name: Rename web and desktop sourcemaps artifacts before upload in order to have unique ReleaseAsset.name
run: |
mv ./desktop-sourcemaps/merged-source-map.js.map ./desktop-sourcemaps/desktop-merged-source-map.js.map
mv ./web-sourcemaps/merged-source-map.js.map ./web-sourcemaps/web-merged-source-map.js.map
- name: Upload artifacts to GitHub Release
run: |
gh release upload ${{ env.STAGING_VERSION }} \
./desktop-sourcemaps/desktop-merged-source-map.js.map#desktop-sourcemap-${{ env.STAGING_VERSION }} \
./desktop-sourcemaps/merged-source-map.js.map#desktop-sourcemap-${{ env.STAGING_VERSION }} \
./desktop-build/NewExpensify.dmg \
./web-sourcemaps/web-merged-source-map.js.map#web-sourcemap-${{ env.STAGING_VERSION }} \
./web-sourcemaps/merged-source-map.js.map#web-sourcemap-${{ env.STAGING_VERSION }} \
./web-build-tar-gz/webBuild.tar.gz \
./web-build-zip/webBuild.zip
env:
Expand Down

0 comments on commit 26b28ec

Please sign in to comment.