-
Notifications
You must be signed in to change notification settings - Fork 5
Develop #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #64
Changes from all commits
5f08d71
63c97c2
9c0d1dc
f42bee6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -276,24 +276,21 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||||||
| ./ResgridRespond-ios-prod.ipa | ||||||||||||||||||||||||||||||||||||||||||||||||||
| retention-days: 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📦 Upload Android build artifacts to Testfairy | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if: (matrix.platform == 'android') | ||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: alexfu/testfairy-upload-action@main | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📦 Setup Firebase CLI | ||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: w9jds/setup-firebase@main | ||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| api-key: ${{ secrets.TESTFAIRY_API_KEY }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| file: ./ResgridRespond-prod.apk | ||||||||||||||||||||||||||||||||||||||||||||||||||
| groups: Resgrid | ||||||||||||||||||||||||||||||||||||||||||||||||||
| notify: on | ||||||||||||||||||||||||||||||||||||||||||||||||||
| tools-version: 11.9.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| firebase_token: ${{ secrets.FIREBASE_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📦 Upload iOS build artifacts to Testfairy | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if: (matrix.platform == 'ios') | ||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: alexfu/testfairy-upload-action@main | ||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| api-key: ${{ secrets.TESTFAIRY_API_KEY }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| file: ./ResgridRespond-ios-adhoc.ipa | ||||||||||||||||||||||||||||||||||||||||||||||||||
| groups: Resgrid | ||||||||||||||||||||||||||||||||||||||||||||||||||
| notify: on | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📦 Upload Android artifact to Firebase App Distribution | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if: (matrix.platform == 'android') | ||||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| firebase appdistribution:distribute ./ResgridRespond-prod.apk --app ${{ secrets.FIREBASE_RESP_ANDROID_APP_ID }} --groups "testers" | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📦 Upload iOS artifact to Firebase App Distribution | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if: (matrix.platform == 'ios') | ||||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| firebase appdistribution:distribute ./ResgridRespond-ios-adhoc.ipa --app ${{ secrets.FIREBASE_RESP_IOS_APP_ID }} --groups "testers" | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+285
to
294
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Gate Firebase distribution by buildType and attach release notes. As written, these steps run on every matrix platform regardless of which artifact was built; manual runs like buildType=dev will fail because the prod files don’t exist. Also, it’s useful to include release notes in Firebase. The CLI supports Use the same build-type guards you used for the build steps and pass succinct notes inline: - - name: 📦 Upload Android artifact to Firebase App Distribution
- if: (matrix.platform == 'android')
+ - name: 📦 Upload Android artifact to Firebase App Distribution
+ if: (matrix.platform == 'android' && (github.event.inputs.buildType == 'all' || github.event_name == 'push' || github.event.inputs.buildType == 'prod-apk'))
run: |
- firebase appdistribution:distribute ./ResgridRespond-prod.apk --app ${{ secrets.FIREBASE_RESP_ANDROID_APP_ID }} --groups "testers"
+ firebase appdistribution:distribute ./ResgridRespond-prod.apk \
+ --app ${{ secrets.FIREBASE_RESP_ANDROID_APP_ID }} \
+ --groups "testers" \
+ --release-notes "RN Android 10.${{ github.run_number }} • ${{ github.sha }}"
- - name: 📦 Upload iOS artifact to Firebase App Distribution
- if: (matrix.platform == 'ios')
+ - name: 📦 Upload iOS artifact to Firebase App Distribution
+ if: (matrix.platform == 'ios' && (github.event.inputs.buildType == 'all' || github.event_name == 'push' || github.event.inputs.buildType == 'ios-adhoc'))
run: |
- firebase appdistribution:distribute ./ResgridRespond-ios-adhoc.ipa --app ${{ secrets.FIREBASE_RESP_IOS_APP_ID }} --groups "testers"
+ firebase appdistribution:distribute ./ResgridRespond-ios-adhoc.ipa \
+ --app ${{ secrets.FIREBASE_RESP_IOS_APP_ID }} \
+ --groups "testers" \
+ --release-notes "RN iOS 10.${{ github.run_number }} • ${{ github.sha }}"Optional: If you prefer richer notes, generate RELEASE_NOTES.md earlier in the job and swap 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: 📋 Prepare Release Notes file | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if: ${{ matrix.platform == 'android' }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Pin the Firebase setup action to a tag or SHA (avoid @main for supply-chain safety).
Inputs
tools-versionandfirebase_tokenare valid for this action, but using@mainis mutable. Prefer a tagged release (e.g., v1.0.0) or a commit SHA. (github.com)📝 Committable suggestion
🤖 Prompt for AI Agents