Skip to content

Integrate Dropbox plugin (#10) #14

Integrate Dropbox plugin (#10)

Integrate Dropbox plugin (#10) #14

Workflow file for this run

name: Distribute Sample App to App Center
on:
push:
branches: [main]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
SAMPLE_APP_PATH: 'apps/sample-app/android'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Add secrets to `local.properties`
run: |
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> ${{ env.SAMPLE_APP_PATH }}/local.properties &&
echo FACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} >> ${{ env.SAMPLE_APP_PATH }}/local.properties &&
echo FACEBOOK_CLIENT_TOKEN=${{ secrets.FACEBOOK_CLIENT_TOKEN }} >> ${{ env.SAMPLE_APP_PATH }}/local.properties &&
echo DROPBOX_APP_KEY=${{ secrets.DROPBOX_APP_KEY }} >> ${{ env.SAMPLE_APP_PATH }}/local.properties
- name: Build release
run: |
cd ${{ env.SAMPLE_APP_PATH }}
./gradlew assembleRelease
- name: Upload .apk to App Center
uses: wzieba/AppCenter-Github-Action@v1
with:
appName: Callstack-dev/React-Native-Auth-Sample-App
group: Testers
token: ${{ secrets.APP_CENTER_TOKEN }}
file: ${{ env.SAMPLE_APP_PATH }}/app/build/outputs/apk/release/app-release.apk
notifyTesters: true
debug: true
gitReleaseNotes: true