Skip to content

Commit 2208238

Browse files
authored
Update android.yml
1 parent d7588c8 commit 2208238

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/android.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,19 @@ jobs:
125125
git log ${LATEST_TAG}..HEAD --pretty=format:"- %s" >> $GITHUB_ENV
126126
echo "EOF" >> $GITHUB_ENV
127127
128-
# ✅ Write Firebase Service Account JSON
129-
- name: Write Firebase Service Account JSON
130-
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > $HOME/firebase-key.json
131-
132128
# ✅ Install firebase-tools globally
133129
- name: Install Firebase CLI
134130
run: npm install -g firebase-tools
135131

136-
# ✅ Upload APK using firebase-tools CLI + Service Account
132+
# ✅ Upload APK using firebase-tools CLI + Firebase Token
137133
- name: Upload Release APK to Firebase App Distribution
138134
run: |
139135
firebase appdistribution:distribute app/build/outputs/apk/release/app-release-unsigned.apk \
140136
--app ${{ secrets.FIREBASE_APP_ID }} \
141137
--groups internal-testers \
142138
--release-notes "Automated build from GitHub Actions with Service Account"
143139
env:
144-
GOOGLE_APPLICATION_CREDENTIALS: $HOME/firebase-key.json
140+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
145141

146142
- name: Create GitHub Release
147143
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)