-
Notifications
You must be signed in to change notification settings - Fork 318
Publish Compose sample APK as a stable GitHub release asset #6565
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
aleksandar-apostolov
merged 5 commits into
develop
from
feature/attach-sample-apk-to-release
Jul 13, 2026
+44
−0
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d024e82
ci: attach compose sample APK to GitHub releases
aleksandar-apostolov ade167e
ci: pass release signing secrets via env instead of inline expansion
aleksandar-apostolov 80b847c
ci: harden release checkout and tag handling
aleksandar-apostolov 4604d37
ci: bump checkout to v6 to match build-conventions convention
aleksandar-apostolov 564d28f
Merge branch 'develop' into feature/attach-sample-apk-to-release
aleksandar-apostolov 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,44 @@ | ||
| name: Attach sample APK to release | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| concurrency: | ||
| group: attach-apk-${{ github.event.release.tag_name }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| attach-compose-sample-apk: | ||
| name: Build and attach Compose sample APK | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| ref: ${{ github.event.release.tag_name }} | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: GetStream/android-ci-actions/actions/setup-java@main | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| - name: Prepare signing environment | ||
| env: | ||
| RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} | ||
| RELEASE_KEYSTORE_PROPERTIES: ${{ secrets.RELEASE_KEYSTORE_PROPERTIES }} | ||
| PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
| run: | | ||
| echo "$RELEASE_KEYSTORE" > .sign/release.keystore.asc | ||
| gpg -d --passphrase "$PASSPHRASE" --batch .sign/release.keystore.asc > .sign/release.keystore | ||
| echo "$RELEASE_KEYSTORE_PROPERTIES" > .sign/keystore.properties.asc | ||
| gpg -d --passphrase "$PASSPHRASE" --batch .sign/keystore.properties.asc > .sign/keystore.properties | ||
| - name: Assemble Compose sample (demo/release) | ||
| run: bash ./gradlew :stream-chat-android-compose-sample:assembleDemoRelease --stacktrace | ||
| - name: Attach APK to release under a constant name | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| RELEASE_TAG: ${{ github.event.release.tag_name }} | ||
| run: | | ||
| gh release upload "$RELEASE_TAG" \ | ||
| "stream-chat-android-compose-sample/build/outputs/apk/demo/release/stream-chat-android-compose-sample-demo-release.apk#stream-chat-android-sample.apk" \ | ||
| --clobber | ||
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.