Skip to content

Commit af35c0c

Browse files
committed
build fix
1 parent da9bb9f commit af35c0c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
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

0 commit comments

Comments
 (0)