Skip to content

Merge pull request #61 from GetStream/stream-chat/6.1.1 #34

Merge pull request #61 from GetStream/stream-chat/6.1.1

Merge pull request #61 from GetStream/stream-chat/6.1.1 #34

name: App Distribute CI
on:
push:
branches:
- main
jobs:
build_virtual_event_sample_app:
name: Build and Distribute VirtualEvent Sample App
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
- 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 :virtual-event-sample:assembleRelease --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: virtual-event-sample-release
path: virtual-event-sample/build/outputs/apk/release/
- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_UI_VIRTUAL_EVENT_SAMPLE_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: stream-testers
file: virtual-event-sample/build/outputs/apk/release/virtual-event-sample-release.apk