0f7688ac5e
- Aggiorna checkout v4→v6, setup-python v5→v5.2.0, setup-android v3→v4 - Aggiorna upload-artifact v3→v4, docker/login-action v3→v4 - Aggiunge needs su auto-release in tutti gli esempi (fix esecuzione parallela) - Aggiunge token esplicito nel checkout come workaround bug Gitea #31900 - Aggiunge job dependency-outdated mancante in libreria-npm/maintenance.yml - Aggiorna schedule: libreria-npm mercoledì 02:00, microservizio lunedì 02:00 - Migra tutti i riferimenti da gitea.com/Punga78 a gitea.pzetatouch.it/devops Fixes #1 @3h
50 lines
1.5 KiB
YAML
50 lines
1.5 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: gitea-release attende entrambe le build Android via needs.
|
|
# Workaround Gitea bug #31900: token esplicito nel checkout di auto-release.yml.
|
|
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
android-apk:
|
|
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/capacitor-android.yml@v1
|
|
secrets: inherit
|
|
with:
|
|
build-type: release
|
|
output-format: apk
|
|
|
|
android-aab:
|
|
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/capacitor-android.yml@v1
|
|
secrets: inherit
|
|
with:
|
|
build-type: release
|
|
output-format: aab
|
|
|
|
gitea-release:
|
|
needs: [android-apk, android-aab]
|
|
uses: https://gitea.pzetatouch.it/devops/shared-actions/.gitea/workflows/auto-release.yml@v1
|
|
secrets: inherit
|