TP-0000 | generate keystore moved on top

This commit is contained in:
Aman Singh
2023-06-13 02:44:43 +05:30
committed by GitHub Enterprise
parent 9b6b17771c
commit d182fe67d3

View File

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