forked from newhinton/Round-Sync
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (67 loc) · 2.68 KB
/
android.yml
File metadata and controls
81 lines (67 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: z_OLD_Android CI Signed
on:
workflow_dispatch: # Mantiene solo l'esecuzione manuale
jobs:
build-signed:
runs-on: ubuntu-latest
# Rendiamo le variabili disponibili a tutto il job
env:
APP_KEYSTORE_BASE64: ${{ secrets.APP_KEYSTORE_BASE64 }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
steps:
- name: Checkout sources
uses: actions/checkout@v6
# ... (Setup Versioni, JDK, Go, Gradle, NDK rimangono uguali) ...
# (Ometto per brevità, copia quelli che avevi già)
# ---------------------------------------------------------
# CORREZIONE QUI SOTTO
# ---------------------------------------------------------
- name: Decode Keystore
if: ${{ env.APP_KEYSTORE_BASE64 }}
run: |
# 1. Creiamo il file DENTRO la cartella 'app'
echo "$APP_KEYSTORE_BASE64" | base64 --decode > app/release.keystore
- name: Build Signed Release APK
env:
# 2. Diciamo a Gradle che il file si chiama 'release.keystore'.
# Poiché build.gradle è dentro 'app/', cercherà in 'app/release.keystore', dove lo abbiamo appena messo.
CMD_RELEASE_KEYSTORE: release.keystore
CMD_RELEASE_KEYSTORE_PASSWORD: ${{ env.KEY_STORE_PASSWORD }}
CMD_RELEASE_KEY_ALIAS: ${{ env.KEY_ALIAS }}
CMD_RELEASE_KEY_PASSWORD: ${{ env.KEY_PASSWORD }}
run: |
./gradlew assembleOssRelease --stacktrace
# --- UPLOAD ARTIFACTS (Tutte le architetture) ---
# Nota: L'upload è per la release build (oss/release)
- name: Upload APK (Universal)
uses: actions/upload-artifact@v7
with:
name: round-sync-universal
path: app/build/outputs/apk/oss/release/*-oss-universal-release.apk
if-no-files-found: warn
- name: Upload APK (Arm64)
uses: actions/upload-artifact@v7
with:
name: round-sync-arm64
path: app/build/outputs/apk/oss/release/*-oss-arm64-v8a-release.apk
if-no-files-found: warn
- name: Upload APK (Armv7)
uses: actions/upload-artifact@v7
with:
name: round-sync-armeabi
path: app/build/outputs/apk/oss/release/*-oss-armeabi-v7a-release.apk
if-no-files-found: warn
- name: Upload APK (x86)
uses: actions/upload-artifact@v7
with:
name: round-sync-x86
path: app/build/outputs/apk/oss/release/*-oss-x86-release.apk
if-no-files-found: warn
- name: Upload APK (x86_64)
uses: actions/upload-artifact@v7
with:
name: round-sync-x64
path: app/build/outputs/apk/oss/release/*-oss-x86_64-release.apk
if-no-files-found: warn