Compare commits
No commits in common. "875d9d2b703cfad8a4108e4c03bdc87a83c9caa1" and "982bb5aa21a49d4b7e63e02dd32e23e411b582ea" have entirely different histories.
875d9d2b70
...
982bb5aa21
34
.github/workflows/gitea-release.yml
vendored
34
.github/workflows/gitea-release.yml
vendored
@ -72,9 +72,6 @@ jobs:
|
|||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
|
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ steps.get_version.outputs.VERSION }}
|
VERSION=${{ steps.get_version.outputs.VERSION }}
|
||||||
cd .pio/build/esp32dev
|
cd .pio/build/esp32dev
|
||||||
@ -87,35 +84,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check if tag exists
|
# Create release using git command
|
||||||
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 tag -a "v${VERSION}" -m "Release ${VERSION}"
|
||||||
git push origin "v${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
|
|
@ -1,11 +1,5 @@
|
|||||||
# Changelog
|
# 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
|
## [1.3.20] - 2025-02-21
|
||||||
### Changed
|
### Changed
|
||||||
- update webpages for version v1.3.20
|
- update webpages for version v1.3.20
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.3.21"
|
version = "1.3.20"
|
||||||
|
|
||||||
#test
|
#test
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user