Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
2004seraph authored Nov 2, 2024
1 parent 11c369c commit 0b997ce
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,31 @@ jobs:
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: Android
androidExportType: 'androidAppBundle'
unityVersion: 2021.3.11f1
androidKeystoreName: springman # This file won't exist, but this property needs to exist.
androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }}
androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }}
androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}

# Output
- uses: actions/upload-artifact@v4
with:
name: Build
path: build

- name: Convert aab to apk
id: convert_aab
uses: mukeshsolanki/[email protected]
with:
aabFile: build/Android/Android.aab
base64Keystore: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
keystorePassword: ${{ secrets.ANDROID_KEYSTORE_PASS }}
keystoreAlias: ${{ secrets.ANDROID_KEYALIAS_NAME }}
keyPassword: ${{ secrets.ANDROID_KEYALIAS_PASS }}

- uses: actions/upload-artifact@v4
with:
name: release-apk
path: ${{ steps.convert_aab.outputs.apkPath }}

0 comments on commit 0b997ce

Please sign in to comment.