feat: update Gitea release workflow to use dynamic upload URL and increment version to 1.2.45

This commit is contained in:
Manuel Weiser 2025-02-19 14:11:44 +01:00
parent 7ae26fb0a9
commit 2755e9c863
2 changed files with 4 additions and 3 deletions

View File

@ -95,8 +95,9 @@ jobs:
"${API_URL}/repos/${REPO}/releases") "${API_URL}/repos/${REPO}/releases")
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | cut -d':' -f2 | head -n1) RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | cut -d':' -f2 | head -n1)
UPLOAD_URL=$(echo "$RESPONSE" | grep -o '"upload_url":"[^"]*' | cut -d':' -f2- | tr -d '"')
if [ -n "$RELEASE_ID"; then if [ -n "$RELEASE_ID" ]; then
echo "Release created with ID: $RELEASE_ID" echo "Release created with ID: $RELEASE_ID"
# Upload files # Upload files
@ -107,7 +108,7 @@ jobs:
-H "Authorization: token ${TOKEN}" \ -H "Authorization: token ${TOKEN}" \
-H "Content-Type: application/octet-stream" \ -H "Content-Type: application/octet-stream" \
--data-binary "@.pio/build/esp32dev/$file" \ --data-binary "@.pio/build/esp32dev/$file" \
"${API_URL}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=$file" "${UPLOAD_URL}?name=$file"
done done
else else
echo "Failed to create release. Response:" echo "Failed to create release. Response:"

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.2.44" version = "1.2.45"
[env:esp32dev] [env:esp32dev]
platform = espressif32 platform = espressif32