Skip to content

Commit 59b6e2c

Browse files
committed
fix: update Firebase App Distribution workflow to select appId and APK file based on environment
1 parent 8ad5bc6 commit 59b6e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/Upload To Firebase App Distribution.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Upload artifact to Firebase App Distribution
7373
uses: wzieba/Firebase-Distribution-Github-Action@v1
7474
with:
75-
appId: ${{secrets.FIREBASE_APP_ID}}
75+
appId: ${{ github.event.inputs.environment == 'staging' && secrets.FIREBASE_APP_ID || secrets.FIREBASE_RELEASE_APP_ID }}
7676
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
7777
groups: testers
7878
file: ${{ github.event.inputs.environment == 'staging' && 'app/build/outputs/apk/debug/app-debug.apk' || 'app/build/outputs/apk/release/app-release.apk' }}

0 commit comments

Comments
 (0)