Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Dec 11, 2024
1 parent 9f0c9e2 commit bd4b222
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/Android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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/[email protected].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:
Expand Down

0 comments on commit bd4b222

Please sign in to comment.