diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3350fda..fc769e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,7 +113,7 @@ jobs: echo "commits<> $GITHUB_OUTPUT echo "$COMMITS" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - + - name: Create GitHub Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -123,11 +123,15 @@ jobs: IS_BETA="${{ steps.tag.outputs.is_beta }}" echo "🚀 Создаём релиз $TAG в GitHub..." + echo "Тип релиза: IS_BETA=$IS_BETA" + # Определяем заголовок if [ "$IS_BETA" = "true" ]; then TITLE="Beta Release $TAG" + PRERELEASE_FLAG="--prerelease" else TITLE="Release $TAG" + PRERELEASE_FLAG="" fi cat > /tmp/release_notes.md << EOF @@ -136,10 +140,18 @@ jobs: $COMMITS EOF - gh release create "$TAG" \ - --title "$TITLE" \ - --notes-file /tmp/release_notes.md \ - --target main \ - ${IS_BETA:+--prerelease} + # Создаём релиз + if [ -n "$PRERELEASE_FLAG" ]; then + gh release create "$TAG" \ + --title "$TITLE" \ + --notes-file /tmp/release_notes.md \ + --target main \ + --prerelease + else + gh release create "$TAG" \ + --title "$TITLE" \ + --notes-file /tmp/release_notes.md \ + --target main + fi echo "✅ Релиз создан!" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 228c9cf..99dbbb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ +## 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) ### Bug Fixes diff --git a/custom_components/motion_light/manifest.json b/custom_components/motion_light/manifest.json index a5cc111..23d232f 100644 --- a/custom_components/motion_light/manifest.json +++ b/custom_components/motion_light/manifest.json @@ -8,5 +8,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/sirmrak/motion_light/issues", "requirements": [], - "version": "1.2.0-beta.3" + "version": "1.2.0-beta.4" } \ No newline at end of file