Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa7eb0a9d9 | ||
|
|
0888c63b80 | ||
|
|
c6e7b332cf | ||
|
|
7b4fdfe629 | ||
|
|
15dd7e3880 | ||
|
|
28811370e9 | ||
|
|
a1fca2f4d1 | ||
|
|
d479bdb583 | ||
|
|
010a1144c5 | ||
|
|
6cf92d83f0 | ||
|
|
9f7199beab | ||
|
|
a02ae4106b | ||
|
|
6a411cea91 | ||
|
|
4ff72fdb07 | ||
|
|
93d1afd7e0 | ||
|
|
11bf31885e | ||
|
|
8b93ed6187 | ||
|
|
286f84fbb0 | ||
|
|
01a504f0ba | ||
|
|
c97fc433bc | ||
|
|
c5a78f998f |
@@ -13,6 +13,7 @@ jobs:
|
|||||||
update-version:
|
update-version:
|
||||||
name: Update Version
|
name: Update Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.actor != 'gitea-actions[bot]' && github.actor != 'Gitea Actions Bot'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
@@ -39,9 +40,30 @@ jobs:
|
|||||||
- name: Run semantic-release
|
- name: Run semantic-release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
PYTHONHTTPSVERIFY: "0"
|
|
||||||
REQUESTS_CA_BUNDLE: ""
|
|
||||||
CURL_CA_BUNDLE: ""
|
|
||||||
run: |
|
run: |
|
||||||
|
echo "🧹 Сбрасываем конфликтующие переменные Gitea Actions..."
|
||||||
|
unset GITHUB_SERVER_URL
|
||||||
|
unset GITHUB_API_URL
|
||||||
|
unset GITHUB_REPOSITORY
|
||||||
|
|
||||||
|
echo "🔐 Записываем оригинальный Root CA от mkcert из секретов..."
|
||||||
|
echo "${{ secrets.LOCAL_ROOT_CA }}" > /tmp/rootCA.crt
|
||||||
|
|
||||||
|
# Проверка на случай, если секрет забыли настроить
|
||||||
|
if [ ! -s /tmp/rootCA.crt ]; then
|
||||||
|
echo "❌ Ошибка: Секрет LOCAL_ROOT_CA пуст. Проверьте настройки репозитория!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "✅ Root CA успешно прочитан."
|
||||||
|
|
||||||
|
# Находим, где конкретно Python (библиотека certifi) хранит свои сертификаты
|
||||||
|
CERTIFI_PATH=$(python3 -c "import certifi; print(certifi.where())")
|
||||||
|
echo "Путь к bundle Python: $CERTIFI_PATH"
|
||||||
|
|
||||||
|
# Внедряем корневой сертификат mkcert в конец доверенного списка Python
|
||||||
|
cat /tmp/rootCA.crt >> "$CERTIFI_PATH"
|
||||||
|
echo "✅ Root CA от mkcert добавлен в доверенные для Python!"
|
||||||
|
|
||||||
echo "🚀 Запускаем semantic-release..."
|
echo "🚀 Запускаем semantic-release..."
|
||||||
semantic-release version
|
semantic-release version
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
name: Create Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Create GitHub Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get tag info
|
||||||
|
id: tag
|
||||||
|
run: |
|
||||||
|
TAG=${GITHUB_REF#refs/tags/}
|
||||||
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
TAG_MSG=$(git tag -l --format='%(contents)' $TAG 2>/dev/null || git log -1 --pretty=%B)
|
||||||
|
echo "message<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "$TAG_MSG" >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
TAG="${{ steps.tag.outputs.tag }}"
|
||||||
|
MSG="${{ steps.tag.outputs.message }}"
|
||||||
|
|
||||||
|
echo "🚀 Создаём релиз $TAG в GitHub..."
|
||||||
|
|
||||||
|
gh release create "$TAG" \
|
||||||
|
--title "Release $TAG" \
|
||||||
|
--notes "$MSG" \
|
||||||
|
--target main
|
||||||
|
|
||||||
|
echo "✅ Релиз создан!"
|
||||||
@@ -2,6 +2,54 @@
|
|||||||
|
|
||||||
<!-- version list -->
|
<!-- version list -->
|
||||||
|
|
||||||
|
## v1.0.12 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Test
|
||||||
|
([`0888c63`](https://192.168.200.208:3000/sirmrak/motion_light/commit/0888c63b804be1e5bedd7e72fbfd142dd4f88287))
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.11 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Test
|
||||||
|
([`15dd7e3`](https://192.168.200.208:3000/sirmrak/motion_light/commit/15dd7e3880dad782f502eb70db6aa8ca23f803bc))
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.10 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Test
|
||||||
|
([`010a114`](https://192.168.200.208:3000/sirmrak/motion_light/commit/010a1144c5dc5252831126bfc9592036a7ca2518))
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.9 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Test
|
||||||
|
([`6a411ce`](https://192.168.200.208:3000/sirmrak/motion_light/commit/6a411cea91047e9714519dbb190d5d92252b024a))
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.8 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Тестовый релиз
|
||||||
|
([`11bf318`](https://192.168.200.208:3000/sirmrak/motion_light/commit/11bf31885eb113d02cf5c1558446a4671c1dc202))
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.7 (2026-07-09)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Тестим авторелиз
|
||||||
|
([`c5a78f9`](https://192.168.200.208:3000/sirmrak/motion_light/commit/c5a78f998fda972f0dfe4f938f0855d3c1d28aee))
|
||||||
|
|
||||||
|
|
||||||
## v1.0.6 (2026-07-09)
|
## v1.0.6 (2026-07-09)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""The Motion Light integration."""
|
"""The Motion Light integration. Test"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@@ -45,5 +45,3 @@ async def _async_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> Non
|
|||||||
"""Handle options update."""
|
"""Handle options update."""
|
||||||
_LOGGER.info("Options updated, reloading Motion Light '%s'", entry.title)
|
_LOGGER.info("Options updated, reloading Motion Light '%s'", entry.title)
|
||||||
await hass.config_entries.async_reload(entry.entry_id)
|
await hass.config_entries.async_reload(entry.entry_id)
|
||||||
|
|
||||||
# # Test fix for release
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"domain": "motion_light",
|
"domain": "motion_light",
|
||||||
"name": "Motion Light",
|
"name": "Motion Light",
|
||||||
"version": "1.0.6",
|
"version": "1.0.12",
|
||||||
"documentation": "https://github.com/sirmrak/motion_light",
|
"documentation": "https://github.com/sirmrak/motion_light",
|
||||||
"issue_tracker": "https://github.com/sirmrak/motion_light/issues",
|
"issue_tracker": "https://github.com/sirmrak/motion_light/issues",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
|
|||||||
+5
-10
@@ -1,29 +1,24 @@
|
|||||||
[tool.semantic_release]
|
[tool.semantic_release]
|
||||||
# Формат тега С префиксом v (для совместимости с существующими тегами)
|
|
||||||
tag_format = "v{version}"
|
tag_format = "v{version}"
|
||||||
|
|
||||||
# Где обновлять версию при релизе
|
|
||||||
version_variables = [
|
version_variables = [
|
||||||
"custom_components/motion_light/manifest.json:version",
|
"custom_components/motion_light/manifest.json:version",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Сообщение коммита
|
|
||||||
commit_message = "chore(release): v{version}"
|
commit_message = "chore(release): v{version}"
|
||||||
|
|
||||||
# Настройки для Gitea
|
# ВАЖНО: не создаём релиз в Gitea (релиз будет в GitHub)
|
||||||
|
upload_to_vcs_release = false
|
||||||
|
|
||||||
[tool.semantic_release.remote]
|
[tool.semantic_release.remote]
|
||||||
type = "gitea"
|
type = "gitea"
|
||||||
# URL вашей Gitea (без trailing slash)
|
domain = "192.168.200.208:3000"
|
||||||
domain = "https://192.168.200.208:3000"
|
api_domain = "192.168.200.208:3000"
|
||||||
# Имя пользователя и репозитория
|
|
||||||
api_path = "/api/v1"
|
|
||||||
|
|
||||||
# Настройки веток
|
|
||||||
[tool.semantic_release.branches.main]
|
[tool.semantic_release.branches.main]
|
||||||
match = "(main|master)"
|
match = "(main|master)"
|
||||||
prerelease = false
|
prerelease = false
|
||||||
|
|
||||||
# Настройки парсера коммитов
|
|
||||||
[tool.semantic_release.commit_parser_options]
|
[tool.semantic_release.commit_parser_options]
|
||||||
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "chore", "revert"]
|
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "chore", "revert"]
|
||||||
minor_tags = ["feat"]
|
minor_tags = ["feat"]
|
||||||
|
|||||||
Reference in New Issue
Block a user