Skip to content

Commit 0553c41

Browse files
committed
fix jdk version and simplify version extraction in workflow
1 parent 4b9ed48 commit 0553c41

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17-
- name: Set up JDK 11
17+
- name: Set up JDK 17
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: '11'
20+
java-version: '17'
2121
distribution: 'temurin'
2222

2323
- name: Setup Android SDK
2424
uses: android-actions/setup-android@v3
2525
with:
2626
cmdline-tools-version: 8512546
27-
log-accepted-android-sdk-licenses: false
2827

2928
- name: Accept Android SDK licenses
30-
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses || true
29+
run: yes | sdkmanager --licenses || true
3130

3231
- name: Cache Gradle dependencies
3332
uses: actions/cache@v4
@@ -51,7 +50,7 @@ jobs:
5150
- name: Get version name
5251
id: version
5352
run: |
54-
VERSION=$(grep "versionName" app/build.gradle.kts | cut -d'"' -f2)
53+
VERSION=${GITHUB_REF#refs/tags/}
5554
echo "version=$VERSION" >> $GITHUB_OUTPUT
5655
5756
- name: Rename APKs

0 commit comments

Comments
 (0)