Skip to content

Commit

Permalink
Merge pull request #47266 from Expensify/andrew-gh-token-upload
Browse files Browse the repository at this point in the history
[No QA]Add github token to each `gh release upload`

(cherry picked from commit b3af56d)

(CP triggered by AndrewGable)
  • Loading branch information
roryabraham authored and OSBotify committed Aug 12, 2024
1 parent 27aa2e0 commit d5f0ec2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/platformDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
- name: Upload Android sourcemaps to GitHub Release
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
run: gh release upload ${{ github.event.release.tag_name }} android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map#android-sourcemap-${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Android build to GitHub Release
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
Expand Down Expand Up @@ -154,6 +156,8 @@ jobs:

- name: Upload desktop sourcemaps to GitHub Release
run: gh release upload ${{ github.event.release.tag_name }} desktop/dist/www/merged-source-map.js.map#desktop-sourcemap-${{ github.event.release.tag_name }} --clobber
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload desktop build to GitHub Release
run: gh release upload ${{ github.event.release.tag_name }} desktop-build/NewExpensify.dmg --clobber
Expand Down Expand Up @@ -244,6 +248,8 @@ jobs:
- name: Upload iOS sourcemaps to GitHub Release
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
run: gh release upload ${{ github.event.release.tag_name }} main.jsbundle.map#ios-sourcemap-${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload iOS build to GitHub Release
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
Expand Down Expand Up @@ -341,6 +347,8 @@ jobs:
- name: Upload web sourcemaps to GitHub Release
run: gh release upload ${{ github.event.release.tag_name }} dist/merged-source-map.js.map#web-sourcemap-${{ github.event.release.tag_name }} --clobber
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload web build to GitHub Release
run: |
Expand Down

0 comments on commit d5f0ec2

Please sign in to comment.