generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to build assets folder if its not there and run the build rel…
…ease
- Loading branch information
1 parent
c7dd18c
commit 72e945f
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,21 @@ jobs: | |
- name: Make Gradlew Executable | ||
run: cd android && chmod +x ./gradlew | ||
|
||
- name: build release | ||
run: npx react-native bundle --platform android --dev false --entry-file index.js --assets-dest cd android/app/src/main && mkdir assets --bundle-output index.android.bundle && cd android && ./gradlew assembleDebug | ||
- name: Build assets folder | ||
run: | | ||
cd android/app/src/main && | ||
if [ -d "assets" ]; then | ||
rm -r assets | ||
fi | ||
- name: Build release | ||
run: | | ||
mkdir -p android/app/src/main/assets && | ||
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && | ||
cd android && | ||
./gradlew assembleDebug | ||
- name: list files | ||
run: ls -lrt android/app/build/outputs/apk/debug | ||
run: ls -lrt android/app/build/outputs/apk/release | ||
|
||
- name: upload artifact to Firebase App Distribution | ||
uses: wzieba/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters