Files
shared-actions/examples/capacitor/release.yml
T
LucaZanni 89555ae07e 🎉 feat(ci): aggiungi pipeline Capacitor Android riutilizzabile
- Nuovo workflow capacitor-android.yml con build debug e release
- Input configurabili: runner, node-version, java-version, build-type, output-format
- Supporto APK (sideload/test) e AAB (Play Store) via output-format
- Firma release tramite keystore in base64 (secret)
- Setup google-services.json opzionale per Firebase
- Cache npm + Gradle per performance
- Upload artifact automatico (retention 14 giorni)
- Esempi consumer: ci.yml, release.yml, maintenance.yml
2026-03-26 11:22:35 +01:00

49 lines
1.4 KiB
YAML

# Copia in: .gitea/workflows/release.yml
# Trigger: git tag v* → APK firmato + AAB Play Store + release Gitea
#
# Secrets richiesti nel repository consumer:
# KEYSTORE_BASE64 — keystore codificato in base64
# KEYSTORE_PASSWORD — password del keystore
# KEY_ALIAS — alias della chiave
# KEY_PASSWORD — password della chiave
# GOOGLE_SERVICES_JSON — contenuto del file google-services.json (se Firebase)
#
# Prerequisito build.gradle (android/app/build.gradle):
# signingConfigs {
# release {
# storeFile file("keystore.jks")
# storePassword System.getenv("KEYSTORE_PASSWORD")
# keyAlias System.getenv("KEY_ALIAS")
# keyPassword System.getenv("KEY_PASSWORD")
# }
# }
#
# NOTA: i job girano in parallelo (no needs).
# Gitea bug #31900: needs + workflow_call + checkout causa errori di autenticazione.
name: Release
on:
push:
tags:
- 'v*'
jobs:
android-apk:
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/capacitor-android.yml@main
secrets: inherit
with:
build-type: release
output-format: apk
android-aab:
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/capacitor-android.yml@main
secrets: inherit
with:
build-type: release
output-format: aab
gitea-release:
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/auto-release.yml@main
secrets: inherit