-
Notifications
You must be signed in to change notification settings - Fork 58
Distribute v2 demo app builds to Firebase App Distribution #1813
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
Merged
andremion
merged 6 commits into
develop-v2
from
andrerego/and-1497-distribute-v2-demo-app-builds-via-firebase-app-distribution
Sep 8, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ad24f8d
Distribute v2 demo app builds to Firebase App Distribution
andremion a3d7ea9
Fix the APK artifact path in the app distribution workflow
andremion a12e2fd
Harden the v2 distribution workflow
andremion 52824fe
TEMPORARY: run the v2 distribution workflow from this PR branch
andremion f3ebec4
Remove the temporary PR branch trigger
andremion afb01a9
Build only the distributed variant in the app distribution workflow
andremion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: App Distribute CI v2 | ||
|
|
||
| # Temporary workflow to publish the v2 demo app to Firebase App Distribution in the shared | ||
| # stream-android-32afb project. When v2 is released and `develop-v2` becomes `develop`, remove | ||
| # this workflow and update the main `app-distribute.yml` instead. | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - develop-v2 | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build_v2_demo_app: | ||
| permissions: | ||
| contents: read | ||
| name: Build and Distribute V2 Demo App | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| - uses: GetStream/android-ci-actions/actions/setup-java@cb46e4f44d105a68738bfd2a1cfd156bb768665b | ||
| - name: Prepare environment | ||
| env: | ||
| ENV_PROPERTIES: ${{ secrets.ENV_PROPERTIES }} | ||
| PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
| RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} | ||
| RELEASE_KEYSTORE_PROPERTIES: ${{ secrets.RELEASE_KEYSTORE_PROPERTIES }} | ||
| run: | | ||
| echo "$RELEASE_KEYSTORE" > .sign/release.keystore.asc | ||
| gpg -d --batch --pinentry-mode loopback --passphrase-fd 0 \ | ||
| .sign/release.keystore.asc > .sign/release.keystore <<< "$PASSPHRASE" | ||
| echo "$RELEASE_KEYSTORE_PROPERTIES" > .sign/keystore.properties.asc | ||
| gpg -d --batch --pinentry-mode loopback --passphrase-fd 0 \ | ||
| .sign/keystore.properties.asc > .sign/keystore.properties <<< "$PASSPHRASE" | ||
| echo "$ENV_PROPERTIES" > .env.properties | ||
| - name: Assemble | ||
| run: bash ./gradlew :demo-app:assembleDevelopmentRelease --stacktrace | ||
| - name: Remove signing material | ||
| if: always() | ||
| run: | | ||
| rm -f .sign/release.keystore .sign/release.keystore.asc \ | ||
| .sign/keystore.properties .sign/keystore.properties.asc \ | ||
| .env.properties | ||
| - name: Upload APK | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | ||
| with: | ||
| name: demo-app-development-release | ||
| path: demo-app/build/outputs/apk/development/release/ | ||
| - name: Upload artifact to Firebase App Distribution | ||
| uses: wzieba/Firebase-Distribution-Github-Action@bd494989dd4bec0343f78adee87fe66e48279ad6 | ||
| with: | ||
| appId: ${{ secrets.FIREBASE_V2_DEMO_APP_ID }} | ||
| serviceCredentialsFileContent: ${{ secrets.STREAM_ANDROID_FIREBASE_CREDENTIALS_APP_CONTENT }} | ||
| groups: stream-testers | ||
| file: demo-app/build/outputs/apk/development/release/demo-app-development-release.apk | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.