Skip to content

Commit 0b997ce

Browse files
authored
Update build.yml
1 parent 11c369c commit 0b997ce

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,31 @@ jobs:
4242
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
4343
with:
4444
targetPlatform: Android
45+
androidExportType: 'androidAppBundle'
4546
unityVersion: 2021.3.11f1
4647
androidKeystoreName: springman # This file won't exist, but this property needs to exist.
4748
androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
4849
androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }}
4950
androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }}
5051
androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}
5152

52-
# Output
5353
- uses: actions/upload-artifact@v4
5454
with:
5555
name: Build
5656
path: build
57+
58+
- name: Convert aab to apk
59+
id: convert_aab
60+
uses: mukeshsolanki/[email protected]
61+
with:
62+
aabFile: build/Android/Android.aab
63+
base64Keystore: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
64+
keystorePassword: ${{ secrets.ANDROID_KEYSTORE_PASS }}
65+
keystoreAlias: ${{ secrets.ANDROID_KEYALIAS_NAME }}
66+
keyPassword: ${{ secrets.ANDROID_KEYALIAS_PASS }}
67+
68+
- uses: actions/upload-artifact@v4
69+
with:
70+
name: release-apk
71+
path: ${{ steps.convert_aab.outputs.apkPath }}
72+

0 commit comments

Comments
 (0)