@@ -3,8 +3,8 @@ name: Build Android APK
33on :
44 push :
55 tags :
6- - ' *.*.*'
7- - ' !*-*'
6+ - " *.*.*"
7+ - " !*-*"
88 workflow_dispatch :
99
1010jobs :
9191
9292 - name : Build Android APK (signed)
9393 if : steps.keystore.outputs.has_keystore == 'true'
94+ env :
95+ ALIAS : ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
96+ KEYPASS : ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
97+ STOREPASS : ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
9498 run : |
9599 dotnet publish -c Release \
96100 osu.Android/osu.Android.csproj \
@@ -100,9 +104,9 @@ jobs:
100104 -p:ApplicationVersion="${{ github.run_number }}" \
101105 -p:AndroidKeyStore="true" \
102106 -p:AndroidSigningKeyStore="${{ github.workspace }}/osu.Android/osu.keystore" \
103- -p:AndroidSigningKeyAlias="${{ secrets.ANDROID_SIGNING_KEY_ALIAS } }" \
104- -p:AndroidSigningKeyPass="${{ secrets.ANDROID_SIGNING_KEY_PASSWORD } }" \
105- -p:AndroidSigningStorePass="${{ secrets.ANDROID_SIGNING_STORE_PASSWORD } }"
107+ -p:AndroidSigningKeyAlias="${ALIAS }" \
108+ -p:AndroidSigningKeyPass="${KEYPASS }" \
109+ -p:AndroidSigningStorePass="${STOREPASS }"
106110
107111 - name : Build Android APK (unsigned)
108112 if : steps.keystore.outputs.has_keystore != 'true'
@@ -124,12 +128,8 @@ jobs:
124128 APK=$(find "$PUBLISH_DIR" -maxdepth 1 -name "*.apk" 2>/dev/null | head -1)
125129
126130 if [ -z "$APK" ]; then
127- echo "::warning::Signed APK not found in publish directory. Falling back to bin/Release (MAY BE UNSIGNED!)"
128- APK=$(find osu.Android/bin/Release -name "*.apk" | head -1)
129- fi
130-
131- if [ -z "$APK" ]; then
132- echo "::error::No APK found anywhere in bin/Release!"
131+ echo "::error::Signed APK not found in publish directory ($PUBLISH_DIR)!"
132+ # Use a non-restricted way to fail
133133 sh -c "false"
134134 fi
135135
0 commit comments