diff --git a/.github/workflows/newBuild.yml b/.github/workflows/newBuild.yml index 6886951a..c2bb7586 100644 --- a/.github/workflows/newBuild.yml +++ b/.github/workflows/newBuild.yml @@ -34,6 +34,9 @@ jobs: with: token: ${{ secrets.MY_REPO_PAT }} submodules: recursive + - name: Generate keystore + if: (github.event.inputs.type == 'release' || inputs.type == 'release') + run: echo "${{ secrets.KEY_STORE }}" > keystore.asc && gpg -d --passpharase "${{ secrets.PASSPHARASE }}" --batch keystore.asc > android/app/my-upload-key.keystore - name: Set Node.js 16.x uses: actions/setup-node@v3 with: @@ -67,14 +70,11 @@ jobs: - name: Create local.properties run: cd android && touch local.properties && echo "sdk.dir = /home/USERNAME/Android/Sdk" > local.properties - name: Assemble with Stacktrace - QA debug - if: (github.event.inputs.environment == 'qa' || inputs.environment == 'qa' && github.event.inputs.type == 'debug' || inputs.type == '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 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: Generate keystore - if: (github.event.inputs.type == 'release' || inputs.type == 'release') - run: echo "${{ secrets.KEY_STORE }}" > keystore.asc && gpg -d --passpharase "${{ secrets.PASSPHARASE }}" --batch keystore.asc > android/app/my-upload-key.keystore - 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