File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12+ env :
13+ HAS_KEYSTORE : ${{ secrets.KEYSTORE_BASE64 != '' }}
1214
1315 steps :
1416 - name : Checkout
@@ -29,11 +31,11 @@ jobs:
2931 run : ./gradlew assembleNonRootDebug assembleRootDebug
3032
3133 - name : Decode keystore
32- if : ${{ secrets.KEYSTORE_BASE64 != '' }}
34+ if : env.HAS_KEYSTORE == 'true'
3335 run : echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > keystore.jks
3436
3537 - name : Build release APKs
36- if : ${{ secrets.KEYSTORE_BASE64 != '' }}
38+ if : env.HAS_KEYSTORE == 'true'
3739 run : |
3840 ./gradlew assembleNonRootRelease assembleRootRelease \
3941 -Pandroid.injected.signing.store.file="${KEYSTORE_PATH}" \
@@ -59,14 +61,14 @@ jobs:
5961 path : app/build/outputs/apk/root/debug/*.apk
6062
6163 - name : Upload nonRoot release APK
62- if : ${{ secrets.KEYSTORE_BASE64 != '' }}
64+ if : env.HAS_KEYSTORE == 'true'
6365 uses : actions/upload-artifact@v4
6466 with :
6567 name : moonlight-nonroot-release
6668 path : app/build/outputs/apk/nonRoot/release/*.apk
6769
6870 - name : Upload root release APK
69- if : ${{ secrets.KEYSTORE_BASE64 != '' }}
71+ if : env.HAS_KEYSTORE == 'true'
7072 uses : actions/upload-artifact@v4
7173 with :
7274 name : moonlight-root-release
You can’t perform that action at this time.
0 commit comments