Skip to content

Commit

Permalink
deploy script changed
Browse files Browse the repository at this point in the history
  • Loading branch information
AYAN committed Nov 17, 2020
1 parent 037b0a5 commit 45dfbd4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/android-deploy.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: react-native-android-build-apk
on:
push:
branches:
- main
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
build-android:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
- name: Build Android Release
run: |
cd android && ./gradlew assembleRelease
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/

- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1.2.1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
token: ${{ secrets.FIREBASE_TOKEN }}
groups: beta-testers
file: android/app/build/outputs/apk/release/app-release.apk

0 comments on commit 45dfbd4

Please sign in to comment.