Version auf 0.9.15 gesetzt
This commit is contained in:
parent
935f7ee173
commit
03e2b0e8e0
|
|
@ -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
|
||||||
|
|
|
||||||
14
release.sh
14
release.sh
|
|
@ -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.
Loading…
Reference in New Issue