From bd4b22267c040dc576041cd1aecf0cbeff2c4e03 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Wed, 11 Dec 2024 17:15:05 +0100 Subject: [PATCH] Fix release --- .github/workflows/Android-release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Android-release.yml b/.github/workflows/Android-release.yml index 82e027a..557deb2 100644 --- a/.github/workflows/Android-release.yml +++ b/.github/workflows/Android-release.yml @@ -8,17 +8,18 @@ on: jobs: build: name: Publish release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install JDK ${{ matrix.java_version }} - uses: actions/setup-java@v4 + - name: Find Tag + id: tagger + uses: jimschubert/query-tag-action@v2 with: - distribution: 'adopt' - java-version: 17 + skip-unshallow: 'true' + commit-ish: HEAD - name: Check pre-release run: | echo "tag=${{steps.tagger.outputs.tag}}" @@ -30,12 +31,17 @@ jobs: fi echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV echo "prerelease=$prerelease" + - name: Install JDK + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: 17 - name: Install Android SDK - uses: malinskiy/action-android/install-sdk@release/0.1.3 + uses: hannesa2/action-android/install-sdk@0.1.16.7 - name: Build project run: ./gradlew assembleRelease env: - VERSION: ${{ github.ref }} + VERSION: ${{steps.tagger.outputs.tag}} - name: Create Release uses: softprops/action-gh-release@v2 with: