Skip to content

Commit a89d466

Browse files
Update main.yml
1 parent e0e53dd commit a89d466

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
with:
3030
java-version: '17'
3131
distribution: 'temurin'
32+
33+
- name: Setup Android SDK Tools
34+
# You may pin to the exact commit or the version.
35+
# uses: android-actions/setup-android@72fdd2e74f58fb338a2743720c0847b8becf1589
36+
uses: android-actions/setup-android@v2.0.2
3237

3338
- name: Add Mode
3439
run: echo "org.flypen.app" | quasar mode add capacitor
@@ -61,7 +66,26 @@ jobs:
6166
release_name: Release ${{ github.run_number }}
6267
draft: false
6368
prerelease: true
64-
69+
70+
- name: Setup Android SDK Tools
71+
# You may pin to the exact commit or the version.
72+
# uses: android-actions/setup-android@72fdd2e74f58fb338a2743720c0847b8becf1589
73+
uses: android-actions/setup-android@v2.0.2
74+
75+
- name: Decode keystore
76+
env:
77+
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
78+
run: |
79+
echo $KEYSTORE_BASE64 | base64 -d > keystore.jks
80+
81+
- name: Sign APK
82+
env:
83+
ALIAS: "org.flypen.app"
84+
KEYSTORE_PASSWORD: ${{ secrets.PASSWORD }}
85+
KEY_PASSWORD: ${{ secrets.PASSWORD }}
86+
run: |
87+
jarsigner -keystore keystore.jks -storepass $KEYSTORE_PASSWORD -keypass $KEY_PASSWORD -signedjar signed.apk unsigned.apk $ALIAS
88+
6589
- name: Upload APK
6690
uses: actions/upload-release-asset@v1
6791
env:

0 commit comments

Comments
 (0)