Update newBuild.yml

This commit is contained in:
Aman Singh
2023-02-28 02:36:32 +05:30
committed by GitHub Enterprise
parent aba76445fd
commit 0e53cb8e8a

View File

@@ -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: