diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index 4b291118..b116f3b2 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -28,6 +28,13 @@ jobs: - name: Make gradlew executable run: chmod +x ./gradlew + - 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 + - name: Build APK id: build run: bash ./gradlew assembleTempoRelease @@ -41,6 +48,8 @@ jobs: alias: ${{ secrets.KEY_ALIAS_GITHUB }} keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD_GITHUB }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Make artifact uses: actions/upload-artifact@v2 @@ -48,34 +57,6 @@ jobs: name: app-release-signed path: ${{steps.sign_apk.outputs.signedReleaseFile}} -# - name: Build AAB -# run: bash ./gradlew bundleRelease - -# - name: Sign AAB -# id: sign_aab -# uses: r0adkll/sign-android-release@v1 -# with: -# releaseDirectory: app/build/outputs/bundle/release -# signingKeyBase64: ${{ secrets.KEYSTORE_BASE64 }} -# alias: ${{ secrets.KEY_ALIAS_GITHUB }} -# keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} -# keyPassword: ${{ secrets.KEY_PASSWORD_GITHUB }} - -# - name: Make artifact -# uses: actions/upload-artifact@v2 -# with: -# name: app-release-signed -# path: ${{steps.sign_aab.outputs.signedReleaseFile}} - -# - name: Build Changelog -# id: changelog -# uses: ardalanamini/auto-changelog@v3 -# with: -# mention-authors: false -# mention-new-contributors: false -# include-compare: false -# semver: false - - name: Create Release id: create_release uses: actions/create-release@v1 @@ -83,7 +64,6 @@ jobs: tag_name: ${{ github.ref }} release_name: Release v${{ github.ref }} body: '> Changelog coming soon' -# body: ${{ steps.changelog.outputs.changelog }} env: GITHUB_TOKEN: ${{ github.token }} @@ -96,13 +76,3 @@ jobs: asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}} asset_name: app-tempo-release.apk asset_content_type: application/zip - -# - name: Upload AAB -# uses: actions/upload-release-asset@v1 -# env: -# GITHUB_TOKEN: ${{ github.token }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ${{steps.sign_aab.outputs.signedReleaseFile}} -# asset_name: app-release.aab -# asset_content_type: application/zip