diff --git a/.github/workflows/newBuild.yml b/.github/workflows/newBuild.yml index 1f6b5b2a..f584554c 100644 --- a/.github/workflows/newBuild.yml +++ b/.github/workflows/newBuild.yml @@ -10,6 +10,13 @@ on: options: - qa - dev + type: + description: Choose build type + required: true + type: choice + options: + - debug + - release version_code: description: Enter app version code (example, 292) required: false @@ -59,12 +66,18 @@ jobs: run: chmod +x android/gradlew - name: Create local.properties run: cd android && touch local.properties && echo "sdk.dir = /home/USERNAME/Android/Sdk" > local.properties - - name: Assemble with Stacktrace - QA Release - if: (github.event.inputs.environment == 'qa' || inputs.environment == 'qa') + - name: Assemble with Stacktrace - QA debug + if: (github.event.inputs.environment == 'qa' || inputs.environment == 'qa') && (github.event.inputs.type == 'debug' || inputs.type == 'debug') run: yarn move:qa && yarn debug && cd android && ./gradlew assembleDebug - - name: Assemble with Stacktrace - Dev Release - if: (github.event.inputs.environment == 'dev' || inputs.environment == 'dev') + - name: Assemble with Stacktrace - Dev debug + if: (github.event.inputs.environment == 'dev' || inputs.environment == 'dev') && (github.event.inputs.type == 'debug' || inputs.type == 'debug') run: yarn move:dev && yarn debug && cd android && ./gradlew assembleDebug + - name: Assemble with Stacktrace - QA Release + if: (github.event.inputs.environment == 'qa' || inputs.environment == 'qa') && (github.event.inputs.type == 'release' || inputs.type == 'release') + run: yarn move:qa && yarn debug && cd android && ./gradlew assembleRelease + - name: Assemble with Stacktrace - dev Release + if: (github.event.inputs.environment == 'dev' || inputs.environment == 'dev') && (github.event.inputs.type == 'release' || inputs.type == 'release') + run: yarn move:dev && yarn debug && cd android && ./gradlew assembleRelease - name: Upload APK as Artifact uses: actions/upload-artifact@v3 with: