Skip to content

Commit

Permalink
Merge pull request #15 from IICMenoringETCEPro/ayan/dev
Browse files Browse the repository at this point in the history
deploy script changed
  • Loading branch information
ayan-biswas0412 authored Nov 18, 2020
2 parents 91eecb4 + bc22b0d commit a13e73d
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,43 @@ on:
branches:
- main
jobs:
install-and-test:
build-android-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
- uses: actions/checkout@master
- name: Install npm modules
run: npm install
- name: run Jetify
run: yarn jetify
- name: Build Android Bundle Release
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
./gradlew bundleRelease
working-directory: android

- name: Upload Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@master
with:
name: app-release.aab
path: android/app/build/outputs/bundle/release/

- name: Display structure of downloaded files
run: ls -R
working-directory: android/app/build/outputs/bundle/release/

- name: Build Universal APK
uses: skywall/universal-apk-builder@v1.0.1
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/
aab_path: "android/app/build/outputs/bundle/release/app-release.aab"
output_dir: "android/app/build/outputs/apk/release"
keystore_path: "android/app/my-key.keystore"
keystore_password: ${{secrets.KEYSTORE_PASSWORD}}
keystore_alias: ${{secrets.KEYSTORE_ALIAS}}
keystore_alias_password: ${{secrets.KEYSTORE_PASSWORD}}

- 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
file: android/app/build/outputs/apk/release/universal.apk

0 comments on commit a13e73d

Please sign in to comment.