diff --git a/.github/workflows/_prepare-release.yml b/.github/workflows/_prepare-release.yml index d7bf79b..bf85a53 100644 --- a/.github/workflows/_prepare-release.yml +++ b/.github/workflows/_prepare-release.yml @@ -17,13 +17,3 @@ jobs: with: gradlePath: app/build.gradle versionCode: ${{ github.run_number }} - - # This will decode the keystore from base 64 text representation that we have stored in secrets - # and generates and keystore file and gets stored in /android-app path - - name: Decode Keystore - env: - ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }} - shell: bash - run: | - echo $ENCODED_STRING > keystore-b64.txt - base64 -d upload-keystore.jks diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 4d75f20..17a3911 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -8,6 +8,7 @@ jobs: build: runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. steps: + - uses: actions/checkout@v3 - name: Build Debug APK run: ./gradlew assembleDevDebug --stacktrace diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1f7197..cb08702 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,11 +10,20 @@ jobs: uses: ./.github/workflows/_prepare-all.yml prepare-release: uses: ./.github/workflows/_prepare-release.yml - secrets: - KEYSTORE_BASE_64: ${{ secrets.KEYSTORE_BASE_64 }} build: runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. steps: + - uses: actions/checkout@v3 + + # This will decode the keystore from base 64 text representation that we have stored in secrets + # and generates and keystore file and gets stored in /android-app path + - name: Decode Keystore + env: + ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }} + shell: bash + run: | + echo $ENCODED_STRING > keystore-b64.txt + base64 -d upload-keystore.jks - name: Build Prod Release APK env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a69856..f62227f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,20 @@ jobs: uses: ./.github/workflows/_prepare-all.yml prepare-release: uses: ./.github/workflows/_prepare-release.yml - secrets: - KEYSTORE_BASE_64: ${{ secrets.KEYSTORE_BASE_64 }} build: runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. steps: + # This will decode the keystore from base 64 text representation that we have stored in secrets + # and generates and keystore file and gets stored in /android-app path + - name: Decode Keystore + env: + ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }} + shell: bash + run: | + echo $ENCODED_STRING > keystore-b64.txt + base64 -d upload-keystore.jks + - name: Build Prod Release APK env: RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}