b864af4bb2
- Aggiunto package.json con versione 1.0.0 - Nuovo workflow release.yml standalone: crea release Gitea su tag v* - Aggiornamento automatico tag major floating (v1 → latest v1.x.x) - Esempi aggiornati da @main a @v1 (tag major stabile) Flusso di release: git tag v1.0.0 && git push origin v1.0.0 → crea release Gitea con changelog → aggiorna tag floating v1
49 lines
1.4 KiB
YAML
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@v1
|
|
secrets: inherit
|
|
with:
|
|
build-type: release
|
|
output-format: apk
|
|
|
|
android-aab:
|
|
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/capacitor-android.yml@v1
|
|
secrets: inherit
|
|
with:
|
|
build-type: release
|
|
output-format: aab
|
|
|
|
gitea-release:
|
|
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/auto-release.yml@v1
|
|
secrets: inherit
|