Skip to content

[CI] Update default GitHub branch (#5501) #3625

[CI] Update default GitHub branch (#5501)

[CI] Update default GitHub branch (#5501) #3625

name: App Distribute CI
on:
push:
branches:
- develop
- main
jobs:
build_ui_components_sample_app:
name: Build and Distribute UI Components Sample App
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-java
- name: Prepare environment
run: |
git fetch --unshallow
echo "${{ secrets.RELEASE_KEYSTORE }}" > .sign/release.keystore.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/release.keystore.asc > .sign/release.keystore
echo "${{ secrets.RELEASE_KEYSTORE_PROPERTIES }}" > .sign/keystore.properties.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/keystore.properties.asc > .sign/keystore.properties
- name: Assemble
run: bash ./gradlew :stream-chat-android-ui-components-sample:assembleDemoRelease --stacktrace
- name: Upload APK
uses: actions/[email protected]
with:
name: stream-chat-android-ui-components-sample-release
path: stream-chat-android-ui-components-sample/build/outputs/apk/demo/release/
- name: Upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_UI_SAMPLE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: stream-testers
file: stream-chat-android-ui-components-sample/build/outputs/apk/demo/release/stream-chat-android-ui-components-sample-demo-release.apk
build_compose_sample_app:
name: Build and Distribute Compose Sample App
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-java
- name: Prepare environment
run: |
git fetch --unshallow
echo "${{ secrets.RELEASE_KEYSTORE }}" > .sign/release.keystore.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/release.keystore.asc > .sign/release.keystore
echo "${{ secrets.RELEASE_KEYSTORE_PROPERTIES }}" > .sign/keystore.properties.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/keystore.properties.asc > .sign/keystore.properties
- name: Assemble
run: bash ./gradlew :stream-chat-android-compose-sample:assembleRelease --stacktrace
- name: Upload APK
uses: actions/[email protected]
with:
name: stream-chat-android-compose-sample-release
path: stream-chat-android-compose-sample/build/outputs/apk/release/
- name: Upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_COMPOSE_SAMPLE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: stream-testers
file: stream-chat-android-compose-sample/build/outputs/apk/demo/release/stream-chat-android-compose-sample-demo-release.apk