Skip to content

Added App release script #35

Added App release script

Added App release script #35

Workflow file for this run

name: Release Apps
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- develop
permissions:
checks: write
contents: read
jobs:
release_android_app:
name: Release Android App
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
- name: Create Release APK
run: |
cd ./packages/react-native-hms
npm install
cd ../react-native-room-kit
npm install
cd ./example
npm install
cd ./android
chmod +x ./gradlew
./gradlew assembleRelease
- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: internal, External
releaseNotesFile: ./packages/react-native-room-kit/example/ExampleAppChangelog.txt
file: ./packages/react-native-room-kit/example/android/app/build/outputs/apk/release/app-release.apk
- name: Extract Branch Name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Post Slack Notification
uses: rtCamp/[email protected]
env:
SLACK_CHANNEL: dogfooding
SLACK_COLOR: ${{ job.status }}
SLACK_ICON_EMMOJI: ":react:"
SLACK_USERNAME: React Native Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
SLACK_TITLE: ":react: 🎉 React Native Android App released! 🎊 :react: \n"
SLACK_MESSAGE: 📝 Changelog 🔗 https://github.com/100mslive/100ms-react-native/blob/${{ steps.extract_branch.outputs.branch }}/packages/react-native-room-kit/example/ExampleAppChangelog.txt
SLACK_FOOTER: 🤖 Download from Firebase 👉 https://appdistribution.firebase.dev/i/7b7ab3b30e627c35