Skip to content

Commit

Permalink
uploaded sourcemap names contain app version
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Jun 19, 2024
1 parent 6ed05f6 commit c2ff42f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/platformDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Archive Android sourcemaps
uses: actions/upload-artifact@v3
with:
name: android-sourcemap
name: android-sourcemap-${{ github.ref_name }}
path: android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map

- name: Upload Android version to GitHub artifacts
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Archive iOS sourcemaps
uses: actions/upload-artifact@v3
with:
name: ios-sourcemap
name: ios-sourcemap-${{ github.ref_name }}
path: main.jsbundle.map

- name: Upload iOS version to GitHub artifacts
Expand Down
6 changes: 4 additions & 2 deletions workflow_tests/assertions/platformDeployAssertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function assertAndroidJobExecuted(workflowResult: Step[], didExecute = true, isP
}
steps.push(
createStepAssertion('Archive Android sourcemaps', true, null, 'ANDROID', 'Archiving Android sourcemaps', [
{key: 'name', value: 'android-sourcemap'},
// Note 1.2.3 comes from the ref name that we are on, which is the version we are deploying
{key: 'name', value: 'android-sourcemap-1.2.3'},
{key: 'path', value: 'android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map'},
]),
);
Expand Down Expand Up @@ -187,7 +188,8 @@ function assertIOSJobExecuted(workflowResult: Step[], didExecute = true, isProdu
}
steps.push(
createStepAssertion('Archive iOS sourcemaps', true, null, 'IOS', 'Archiving sourcemaps', [
{key: 'name', value: 'ios-sourcemap'},
// Note 1.2.3 comes from the ref name that we are on, which is the version we are deploying
{key: 'name', value: 'ios-sourcemap-1.2.3'},
{key: 'path', value: 'main.jsbundle.map'},
]),
);
Expand Down

0 comments on commit c2ff42f

Please sign in to comment.