Compare commits

..

3 Commits

Author SHA1 Message Date
875d9d2b70 docs: update changelog for version 1.3.21
Some checks failed
Release Workflow / detect-provider (push) Successful in 3s
Release Workflow / github-release (push) Has been skipped
Release Workflow / gitea-release (push) Failing after 2m53s
2025-02-21 22:34:28 +01:00
52840b9b0b docs: update webpages for version v1.3.21 2025-02-21 22:34:28 +01:00
da1fc7678f workflow: enhance Gitea release process with API integration and token management 2025-02-21 22:34:18 +01:00
3 changed files with 42 additions and 4 deletions

View File

@ -72,6 +72,9 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Gitea Release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
cd .pio/build/esp32dev
@ -84,6 +87,35 @@ jobs:
fi
done
# Create release using git command
git tag -a "v${VERSION}" -m "Release ${VERSION}"
git push origin "v${VERSION}"
# Check if tag exists
if ! git rev-parse "v${VERSION}" >/dev/null 2>&1; then
# Create tag if it doesn't exist
git tag -a "v${VERSION}" -m "Release ${VERSION}"
git push origin "v${VERSION}"
fi
# Create Gitea release using API
RELEASE_DATA="{
\"tag_name\": \"v${VERSION}\",
\"name\": \"v${VERSION}\",
\"body\": \"${{ steps.changelog.outputs.CHANGES }}\"
}"
# Create release
RESPONSE=$(curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "$RELEASE_DATA" \
"${GITEA_API_URL}/repos/owner/repo/releases")
# Upload assets
RELEASE_ID=$(echo $RESPONSE | jq -r .id)
for file in upgrade_filaman_firmware_v${VERSION}.bin upgrade_filaman_website_v${VERSION}.bin filaman_full_${VERSION}.bin; do
if [ -f "$file" ]; then
curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$file" \
"${GITEA_API_URL}/repos/owner/repo/releases/${RELEASE_ID}/assets?name=${file}"
fi
done

View File

@ -1,5 +1,11 @@
# Changelog
## [1.3.21] - 2025-02-21
### Changed
- update webpages for version v1.3.21
- workflow: enhance Gitea release process with API integration and token management
## [1.3.20] - 2025-02-21
### Changed
- update webpages for version v1.3.20

View File

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