Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
alexytomi committed Dec 6, 2024
1 parent dac33e7 commit c74b018
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
fetch-depth: 1
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
run: echo "suffix=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: set up JDK 17
uses: actions/setup-java@v4
with:
Expand All @@ -26,10 +26,11 @@ 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-debug.apk android/build/outputs/apk/debug/Mindustry-BE-Android-${RELEASE_VERSION}.apk
mv android/build/outputs/apk/debug/android-debug.apk android/build/outputs/apk/debug/Mindustry-BE-Android-${suffix}.apk
echo "JDK directory: $JDK_DIR"
echo $PWD
- name: Upload Android artifacts
uses: actions/upload-artifact@v4
with:
path: android/build/outputs/apk/debug/Mindustry-BE-Android-${{ env.RELEASE_VERSION }}.apk
name: mindustry_debug.zip
path: android/build/outputs/apk/debug/Mindustry-BE-Android-${{ env.suffix }}.apk

0 comments on commit c74b018

Please sign in to comment.