Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
8e2a8d597d | |||
7d3b1c34f6 | |||
b95c61118b | |||
0dfb158959 | |||
75c774bb24 | |||
cf80adb43c |
27
.github/workflows/gitea-release.yml
vendored
27
.github/workflows/gitea-release.yml
vendored
@ -2,6 +2,10 @@ name: Gitea Release
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
GITEA_TOKEN:
|
||||
description: 'Token für Gitea API-Zugriff'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
@ -120,7 +124,7 @@ jobs:
|
||||
FILES=""
|
||||
for file in upgrade_filaman_firmware_v${VERSION}.bin upgrade_filaman_website_v${VERSION}.bin filaman_full_${VERSION}.bin; do
|
||||
if [ -f "$file" ]; then
|
||||
FILES="$FILES -a $file"
|
||||
FILES="$FILES -F \"attach[]=@$file\""
|
||||
echo "Debug: Found file: $file"
|
||||
fi
|
||||
done
|
||||
@ -139,19 +143,18 @@ jobs:
|
||||
|
||||
# Create release using API
|
||||
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
|
||||
RESPONSE=$(curl -s -w "\n%{http_code}" \
|
||||
# Create release with explicit token header and file uploads
|
||||
CURL_CMD="curl -s -w \"\n%{http_code}\" \
|
||||
-X POST \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$RELEASE_DATA" \
|
||||
"${GITEA_API_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases")
|
||||
-H \"Authorization: token ${GITEA_TOKEN}\" \
|
||||
-H \"Content-Type: application/json\" \
|
||||
-d '${RELEASE_DATA}' \
|
||||
${FILES} \
|
||||
\"${GITEA_API_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases\""
|
||||
|
||||
RESPONSE=$(eval $CURL_CMD)
|
||||
|
||||
HTTP_STATUS=$(echo "$RESPONSE" | tail -n1)
|
||||
RESPONSE_BODY=$(echo "$RESPONSE" | head -n -1)
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -36,4 +36,6 @@ jobs:
|
||||
gitea-release:
|
||||
needs: detect-provider
|
||||
if: needs.detect-provider.outputs.provider == 'gitea'
|
||||
uses: ./.github/workflows/gitea-release.yml
|
||||
uses: ./.github/workflows/gitea-release.yml
|
||||
secrets:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,5 +1,19 @@
|
||||
# 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
|
||||
### Added
|
||||
- workflow: add GITEA_TOKEN secret for Gitea API access in release workflows
|
||||
|
||||
### Changed
|
||||
- update webpages for version v1.3.27
|
||||
|
||||
|
||||
## [1.3.26] - 2025-02-21
|
||||
### Changed
|
||||
- update webpages for version v1.3.26
|
||||
|
@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common]
|
||||
version = "1.3.26"
|
||||
version = "1.3.28"
|
||||
|
||||
#test
|
||||
|
||||
|
Reference in New Issue
Block a user