mirror of
https://github.com/Dasemu/web-imposter-game.git
synced 2026-11-28 00:07:10 +00:00
feat: simplify keystore handling conditions in APK build process
This commit is contained in:
1 parent
ae3ce89516
commit
1cce73175c
1 file changed
+6
-6
@@ -35,12 +35,12 @@ jobs:
|
|||||||
run: npx cap sync android
|
run: npx cap sync android
|
||||||
|
|
||||||
- name: Decode keystore
|
- name: Decode keystore
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 != '' }}
|
if: secrets.KEYSTORE_BASE64 != ''
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > android/impostor.keystore
|
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > android/impostor.keystore
|
||||||
|
|
||||||
- name: Create keystore.properties
|
- name: Create keystore.properties
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 != '' }}
|
if: secrets.KEYSTORE_BASE64 != ''
|
||||||
run: |
|
run: |
|
||||||
cat > android/keystore.properties << EOF
|
cat > android/keystore.properties << EOF
|
||||||
storeFile=../impostor.keystore
|
storeFile=../impostor.keystore
|
||||||
@@ -50,17 +50,17 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Build Release APK
|
- name: Build Release APK
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 != '' }}
|
if: secrets.KEYSTORE_BASE64 != ''
|
||||||
working-directory: android
|
working-directory: android
|
||||||
run: ./gradlew assembleRelease --no-daemon
|
run: ./gradlew assembleRelease --no-daemon
|
||||||
|
|
||||||
- name: Build Debug APK (fallback)
|
- name: Build Debug APK (fallback)
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 == '' }}
|
if: secrets.KEYSTORE_BASE64 == ''
|
||||||
working-directory: android
|
working-directory: android
|
||||||
run: ./gradlew assembleDebug --no-daemon
|
run: ./gradlew assembleDebug --no-daemon
|
||||||
|
|
||||||
- name: Upload Release APK
|
- name: Upload Release APK
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 != '' }}
|
if: secrets.KEYSTORE_BASE64 != ''
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: impostor-game-release
|
name: impostor-game-release
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Upload Debug APK (fallback)
|
- name: Upload Debug APK (fallback)
|
||||||
if: ${{ secrets.KEYSTORE_BASE64 == '' }}
|
if: secrets.KEYSTORE_BASE64 == ''
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: impostor-game-debug
|
name: impostor-game-debug
|
||||||
|
|||||||
Reference in new issue
Block a user