Compare commits

..

No commits in common. "8e2a8d597d007056c74208f14383c5fc67885b4f" and "0dfb1589598966d7d903c09d53d8e82a74b3d5e0" have entirely different histories.

3 changed files with 13 additions and 18 deletions

View File

@ -124,7 +124,7 @@ jobs:
FILES="" FILES=""
for file in upgrade_filaman_firmware_v${VERSION}.bin upgrade_filaman_website_v${VERSION}.bin filaman_full_${VERSION}.bin; do for file in upgrade_filaman_firmware_v${VERSION}.bin upgrade_filaman_website_v${VERSION}.bin filaman_full_${VERSION}.bin; do
if [ -f "$file" ]; then if [ -f "$file" ]; then
FILES="$FILES -F \"attach[]=@$file\"" FILES="$FILES -a $file"
echo "Debug: Found file: $file" echo "Debug: Found file: $file"
fi fi
done done
@ -143,18 +143,19 @@ jobs:
# Create release using API # Create release using API
echo "Debug: Creating release..." echo "Debug: Creating release..."
RELEASE_DATA="{\"tag_name\":\"v${VERSION}\",\"name\":\"v${VERSION}\",\"body\":\"${{ steps.changelog.outputs.CHANGES }}\"}" RELEASE_DATA="{
\"tag_name\": \"v${VERSION}\",
\"name\": \"v${VERSION}\",
\"body\": \"${{ steps.changelog.outputs.CHANGES }}\"
}"
# Create release with explicit token header and file uploads # Create release with explicit token header
CURL_CMD="curl -s -w \"\n%{http_code}\" \ RESPONSE=$(curl -s -w "\n%{http_code}" \
-X POST \ -X POST \
-H \"Authorization: token ${GITEA_TOKEN}\" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H \"Content-Type: application/json\" \ -H "Content-Type: application/json" \
-d '${RELEASE_DATA}' \ -d "$RELEASE_DATA" \
${FILES} \ "${GITEA_API_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases")
\"${GITEA_API_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases\""
RESPONSE=$(eval $CURL_CMD)
HTTP_STATUS=$(echo "$RESPONSE" | tail -n1) HTTP_STATUS=$(echo "$RESPONSE" | tail -n1)
RESPONSE_BODY=$(echo "$RESPONSE" | head -n -1) RESPONSE_BODY=$(echo "$RESPONSE" | head -n -1)

View File

@ -1,11 +1,5 @@
# Changelog # Changelog
## [1.3.28] - 2025-02-21
### Changed
- update webpages for version v1.3.28
- workflow: update Gitea release workflow to use file uploads with curl
## [1.3.27] - 2025-02-21 ## [1.3.27] - 2025-02-21
### Added ### Added
- workflow: add GITEA_TOKEN secret for Gitea API access in release workflows - workflow: add GITEA_TOKEN secret for Gitea API access in release workflows

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.3.28" version = "1.3.27"
#test #test