diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b80d8a47..d500083a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,6 +63,13 @@ jobs: name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) debug generated path: ${{ env.main_project_module }}/build/outputs/apk/debug/ + - name: Setup build tool version variable + shell: bash + run: | + BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) + echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV + echo Last build tool version is: $BUILD_TOOL_VERSION + - uses: r0adkll/sign-android-release@v1 name: Sign app APK # ID used to access action output @@ -73,13 +80,15 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Upload APK Release - ${{ env.repository_name }} uses: actions/upload-artifact@v3 with: name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) release generated path: ${{steps.sign_app.outputs.signedReleaseFile}} - + - name: Rename APK(s) run: | mv ${{steps.sign_app.outputs.signedReleaseFile}} app-release-signed.apk