Compare commits

...

1 Commits

Author SHA1 Message Date
Arnold Ude PC2024 03e2b0e8e0 Version auf 0.9.15 gesetzt 2025-11-25 11:28:08 +01:00
3 changed files with 15 additions and 1 deletions

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 0.9.14 version: 0.9.15
environment: environment:
sdk: ^3.10.1 sdk: ^3.10.1

View File

@ -84,3 +84,17 @@ curl -sS -X POST \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets" "${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets"
echo "APK hochgeladen." echo "APK hochgeladen."
# Nur die drei neuesten Releases behalten, ältere löschen
all_releases=$(curl -sS \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases")
echo "$all_releases" | jq -r 'sort_by(.created_at) | .[0:-3] | .[]? | "\(.id)\t\(.tag_name)"' | while IFS=$'\t' read -r old_id old_tag; do
echo "Lösche altes Release: ${old_tag} (ID ${old_id})"
curl -sS -X DELETE \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${old_id}" >/dev/null
done
echo "Ältere Releases bereinigt; es bleiben die letzten drei."

Binary file not shown.