Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexytomi authored Dec 6, 2024
1 parent 3f20c2d commit 14182e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: set up JDK 17
uses: actions/setup-java@v4
with:
Expand All @@ -24,9 +26,10 @@ jobs:
sed -i 's/Mindustry/Mindustry BE/g' android/res/values/strings.xml
./gradlew pack
./gradlew android:assembleDebug --stacktrace
mv android/build/outputs/apk/debug/android-release.apk android/build/outputs/apk/debug/Mindustry-BE-Android-${RELEASE_VERSION}.apk
echo "JDK directory: $JDK_DIR"
echo $PWD
- name: Upload Android artifacts
uses: actions/upload-artifact@v4
with:
path: android/build/outputs/apk/release/Mindustry-BE-Android-${{ env.RELEASE_VERSION }}.apk
path: android/build/outputs/apk/debug/Mindustry-BE-Android-${{ env.RELEASE_VERSION }}.apk

0 comments on commit 14182e3

Please sign in to comment.