2026-05-12 18:00:45 +00:00
|
|
|
#!/bin/bash -x
|
2026-05-12 16:03:15 +00:00
|
|
|
echo "Ejecutando $0 en directorio $(pwd)"
|
2026-05-12 14:15:27 +00:00
|
|
|
|
2026-05-12 15:55:28 +00:00
|
|
|
build_release_files(){
|
2026-05-12 16:44:17 +00:00
|
|
|
make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container
|
2026-05-12 15:55:28 +00:00
|
|
|
|
2026-05-12 18:00:45 +00:00
|
|
|
echo " ----> Listando archivos en ./build"
|
2026-05-12 17:48:32 +00:00
|
|
|
find build/
|
2026-05-12 18:00:45 +00:00
|
|
|
echo " <----"
|
|
|
|
|
|
2026-05-12 17:02:05 +00:00
|
|
|
pushd build/web && zip -r ../../webapp.zip * && popd
|
|
|
|
|
pushd build/linux/x64/release/bundle && zip -r ../../../../../linux-bin.zip * && popd
|
2026-05-12 18:00:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get_release_files(){
|
2026-05-12 16:44:17 +00:00
|
|
|
echo ./build/app/outputs/flutter-apk/app-release.apk linux-bin.zip webapp.zip
|
2026-05-12 15:55:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
main(){
|
|
|
|
|
TAG=${GITHUB_REF#refs/tags/}
|
|
|
|
|
build_release_files
|
2026-05-12 16:38:59 +00:00
|
|
|
FILES="$(get_release_files)"
|
|
|
|
|
gh release create $TAG $FILES
|
2026-05-12 15:55:28 +00:00
|
|
|
}
|
|
|
|
|
|
2026-05-12 17:49:38 +00:00
|
|
|
main
|