[IMPROVE] Automatically release Experimental Android to Production on develop branch CI (#4056)
This commit is contained in:
parent
1d452ed9e6
commit
67073a1d75
|
@ -150,7 +150,7 @@ commands:
|
||||||
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
|
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
|
||||||
./gradlew bundleOfficialPlayRelease
|
./gradlew bundleOfficialPlayRelease
|
||||||
fi
|
fi
|
||||||
if [[ $CIRCLE_JOB == "android-build-experimental" ]]; then
|
if [[ $CIRCLE_JOB == "android-build-experimental" || "android-automatic-build-experimental" ]]; then
|
||||||
./gradlew bundleExperimentalPlayRelease
|
./gradlew bundleExperimentalPlayRelease
|
||||||
fi
|
fi
|
||||||
if [[ ! $KEYSTORE ]]; then
|
if [[ ! $KEYSTORE ]]; then
|
||||||
|
@ -169,7 +169,7 @@ commands:
|
||||||
--source-map=android/app/build/generated/sourcemaps/react/officialPlay/release/app.bundle.map \
|
--source-map=android/app/build/generated/sourcemaps/react/officialPlay/release/app.bundle.map \
|
||||||
--bundle android/app/build/generated/assets/react/officialPlay/release/app.bundle
|
--bundle android/app/build/generated/assets/react/officialPlay/release/app.bundle
|
||||||
fi
|
fi
|
||||||
if [[ $CIRCLE_JOB == "android-build-experimental" ]]; then
|
if [[ $CIRCLE_JOB == "android-build-experimental" || "android-automatic-build-experimental" ]]; then
|
||||||
npx bugsnag-source-maps upload-react-native \
|
npx bugsnag-source-maps upload-react-native \
|
||||||
--api-key=$BUGSNAG_KEY \
|
--api-key=$BUGSNAG_KEY \
|
||||||
--app-version-code=$CIRCLE_BUILD_NUM \
|
--app-version-code=$CIRCLE_BUILD_NUM \
|
||||||
|
@ -379,7 +379,19 @@ jobs:
|
||||||
resource_class: large
|
resource_class: large
|
||||||
steps:
|
steps:
|
||||||
- android-build
|
- android-build
|
||||||
|
|
||||||
|
# Android automatic builds
|
||||||
|
android-automatic-build-experimental:
|
||||||
|
<<: *defaults
|
||||||
|
docker:
|
||||||
|
- image: circleci/android:api-29-node
|
||||||
|
environment:
|
||||||
|
<<: *android-env
|
||||||
|
<<: *bash-env
|
||||||
|
resource_class: large
|
||||||
|
steps:
|
||||||
|
- android-build
|
||||||
|
|
||||||
android-build-official:
|
android-build-official:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
docker:
|
docker:
|
||||||
|
@ -485,6 +497,10 @@ workflows:
|
||||||
type: approval
|
type: approval
|
||||||
requires:
|
requires:
|
||||||
- lint-testunit
|
- lint-testunit
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- develop
|
||||||
- android-build-experimental:
|
- android-build-experimental:
|
||||||
requires:
|
requires:
|
||||||
- android-hold-build-experimental
|
- android-hold-build-experimental
|
||||||
|
@ -505,12 +521,16 @@ workflows:
|
||||||
- android-google-play-production-experimental:
|
- android-google-play-production-experimental:
|
||||||
requires:
|
requires:
|
||||||
- android-hold-google-play-production-experimental
|
- android-hold-google-play-production-experimental
|
||||||
|
|
||||||
# Android Official
|
# Android Official
|
||||||
- android-hold-build-official:
|
- android-hold-build-official:
|
||||||
type: approval
|
type: approval
|
||||||
requires:
|
requires:
|
||||||
- lint-testunit
|
- lint-testunit
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- develop
|
||||||
- android-build-official:
|
- android-build-official:
|
||||||
requires:
|
requires:
|
||||||
- android-hold-build-official
|
- android-hold-build-official
|
||||||
|
@ -521,3 +541,15 @@ workflows:
|
||||||
- android-google-play-beta-official:
|
- android-google-play-beta-official:
|
||||||
requires:
|
requires:
|
||||||
- android-hold-google-play-beta-official
|
- android-hold-google-play-beta-official
|
||||||
|
|
||||||
|
# Android Automatic Experimental
|
||||||
|
- android-automatic-build-experimental:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
requires:
|
||||||
|
- lint-testunit
|
||||||
|
- android-google-play-production-experimental:
|
||||||
|
requires:
|
||||||
|
- android-automatic-build-experimental
|
||||||
|
|
Loading…
Reference in New Issue