From 73aa6fd33fdaf795574f0bc946ca09296eb25e2a Mon Sep 17 00:00:00 2001 From: Mark Injerd Date: Fri, 26 Jan 2024 00:21:53 -0500 Subject: [PATCH] Replace debug with release in auto build workflow --- .github/workflows/auto-build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 1d7748a..e2c20de 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -29,16 +29,21 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Build Debug APK - id: build-debug - run: ./gradlew assembleDebug + - name: Create keystore files + run: | + echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -di > release.keystore + echo "${{ secrets.KEYSTORE_PROPERTIES }}" > keystore.properties + + - name: Build + id: build + run: ./gradlew assembleRelease - name: Automatic Releases uses: marvinpinto/action-automatic-releases@latest - if: ${{ steps.build-debug.outcome == 'success' }} + if: ${{ steps.build.outcome == 'success' }} with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "latest" prerelease: true - title: "Auto build [debug]" + title: "Auto build" files: 'app/build/outputs/apk/**/*.apk'