fix: releases #8
@@ -123,11 +123,15 @@ jobs:
|
|||||||
IS_BETA="${{ steps.tag.outputs.is_beta }}"
|
IS_BETA="${{ steps.tag.outputs.is_beta }}"
|
||||||
|
|
||||||
echo "🚀 Создаём релиз $TAG в GitHub..."
|
echo "🚀 Создаём релиз $TAG в GitHub..."
|
||||||
|
echo "Тип релиза: IS_BETA=$IS_BETA"
|
||||||
|
|
||||||
|
# Определяем заголовок
|
||||||
if [ "$IS_BETA" = "true" ]; then
|
if [ "$IS_BETA" = "true" ]; then
|
||||||
TITLE="Beta Release $TAG"
|
TITLE="Beta Release $TAG"
|
||||||
|
PRERELEASE_FLAG="--prerelease"
|
||||||
else
|
else
|
||||||
TITLE="Release $TAG"
|
TITLE="Release $TAG"
|
||||||
|
PRERELEASE_FLAG=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > /tmp/release_notes.md << EOF
|
cat > /tmp/release_notes.md << EOF
|
||||||
@@ -136,10 +140,18 @@ jobs:
|
|||||||
$COMMITS
|
$COMMITS
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Создаём релиз
|
||||||
|
if [ -n "$PRERELEASE_FLAG" ]; then
|
||||||
gh release create "$TAG" \
|
gh release create "$TAG" \
|
||||||
--title "$TITLE" \
|
--title "$TITLE" \
|
||||||
--notes-file /tmp/release_notes.md \
|
--notes-file /tmp/release_notes.md \
|
||||||
--target main \
|
--target main \
|
||||||
${IS_BETA:+--prerelease}
|
--prerelease
|
||||||
|
else
|
||||||
|
gh release create "$TAG" \
|
||||||
|
--title "$TITLE" \
|
||||||
|
--notes-file /tmp/release_notes.md \
|
||||||
|
--target main
|
||||||
|
fi
|
||||||
|
|
||||||
echo "✅ Релиз создан!"
|
echo "✅ Релиз создан!"
|
||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
<!-- version list -->
|
<!-- version list -->
|
||||||
|
|
||||||
|
## v1.2.0-beta.4 (2026-07-22)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Correct prerelease detection in GitHub workflow
|
||||||
|
([`5e52428`](https://git.darkmode.duckdns.org/sirmrak/motion_light/commit/5e5242888af5d66e20e95156ac846d7f650a23e3))
|
||||||
|
|
||||||
|
|
||||||
## v1.2.0-beta.3 (2026-07-22)
|
## v1.2.0-beta.3 (2026-07-22)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -8,5 +8,5 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"issue_tracker": "https://github.com/sirmrak/motion_light/issues",
|
"issue_tracker": "https://github.com/sirmrak/motion_light/issues",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"version": "1.2.0-beta.3"
|
"version": "1.2.0-beta.4"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user