Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a02ae4106b | ||
|
|
6a411cea91 | ||
|
|
4ff72fdb07 | ||
|
|
93d1afd7e0 | ||
|
|
11bf31885e | ||
|
|
8b93ed6187 | ||
|
|
286f84fbb0 | ||
|
|
01a504f0ba | ||
|
|
c97fc433bc | ||
|
|
c5a78f998f | ||
|
|
eb106d7fe4 | ||
|
|
4ffa66c312 | ||
|
|
3ff545c6df | ||
|
|
458603e80c | ||
|
|
81dbc70b04 | ||
|
|
58ae700e0b | ||
|
|
399f55c57b |
@@ -1,4 +1,4 @@
|
|||||||
Update Versionname: Update Version
|
name: Update Version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -36,22 +36,12 @@ jobs:
|
|||||||
git config --local user.email "actions@gitea.local"
|
git config --local user.email "actions@gitea.local"
|
||||||
git config --local user.name "Gitea Actions Bot"
|
git config --local user.name "Gitea Actions Bot"
|
||||||
|
|
||||||
- name: Disable SSL verification
|
- name: Run semantic-release
|
||||||
run: |
|
|
||||||
SITE_PACKAGES=$(python3 -c "import site; print(site.getsitepackages()[0])")
|
|
||||||
cat > "$SITE_PACKAGES/sitecustomize.py" << 'PYEOF'
|
|
||||||
import ssl
|
|
||||||
ssl._create_default_https_context = ssl._create_unverified_context
|
|
||||||
PYEOF
|
|
||||||
|
|
||||||
- name: Run Semantic Release (no publish)
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
PYTHONHTTPSVERIFY: "0"
|
||||||
|
REQUESTS_CA_BUNDLE: ""
|
||||||
|
CURL_CA_BUNDLE: ""
|
||||||
run: |
|
run: |
|
||||||
# Запускаем semantic-release, но не публикуем релиз
|
echo "🚀 Запускаем semantic-release..."
|
||||||
# Он только обновит manifest.json и создаст тег
|
semantic-release version
|
||||||
semantic-release version --no-vcs-release
|
|
||||||
|
|
||||||
# Пушим изменения обратно в Gitea
|
|
||||||
git push origin main
|
|
||||||
git push origin --tags
|
|
||||||
@@ -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 "✅ Релиз создан!"
|
||||||
+51
-5
@@ -2,20 +2,36 @@
|
|||||||
|
|
||||||
<!-- version list -->
|
<!-- version list -->
|
||||||
|
|
||||||
|
## 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)
|
## v1.0.7 (2026-07-09)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
- Run Semantic Release
|
- Тестим авторелиз
|
||||||
([`e10e3e7`](https://192.168.200.208:3000/sirmrak/motion_light/commit/e10e3e7c19c2da63289cd499cca5a5eacee22157))
|
([`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
|
||||||
|
|
||||||
- Disable SSL verification for semantic-release
|
- Тестовое исправление для автоматического релиза
|
||||||
([`ae301f2`](https://192.168.200.208:3000/sirmrak/motion_light/commit/ae301f25db468e56f9378582215b4dac6979722e))
|
([`58ae700`](https://192.168.200.208:3000/sirmrak/motion_light/commit/58ae700e0ba31b664222eccd96aaa17d30d2eff4))
|
||||||
|
|
||||||
|
|
||||||
## v1.0.5 (2026-07-09)
|
## v1.0.5 (2026-07-09)
|
||||||
@@ -25,10 +41,40 @@
|
|||||||
- Configure semantic-release for Gitea with SSL
|
- Configure semantic-release for Gitea with SSL
|
||||||
([`4587148`](https://192.168.200.208:3000/sirmrak/motion_light/commit/4587148d70e362fdd2a47523df0da959499fba2f))
|
([`4587148`](https://192.168.200.208:3000/sirmrak/motion_light/commit/4587148d70e362fdd2a47523df0da959499fba2f))
|
||||||
|
|
||||||
|
- Disable SSL verification for semantic-release
|
||||||
|
([`ae301f2`](https://192.168.200.208:3000/sirmrak/motion_light/commit/ae301f25db468e56f9378582215b4dac6979722e))
|
||||||
|
|
||||||
|
- Release
|
||||||
|
([`59d3f9a`](https://192.168.200.208:3000/sirmrak/motion_light/commit/59d3f9accd5d2cb3b8e1ef4f403c7445e7da7b46))
|
||||||
|
|
||||||
|
- Release.yaml
|
||||||
|
([`bd34c9f`](https://192.168.200.208:3000/sirmrak/motion_light/commit/bd34c9fd81002974c08a6f349f0234b4e78353aa))
|
||||||
|
|
||||||
|
- Run Semantic Release
|
||||||
|
([`e10e3e7`](https://192.168.200.208:3000/sirmrak/motion_light/commit/e10e3e7c19c2da63289cd499cca5a5eacee22157))
|
||||||
|
|
||||||
|
- Test
|
||||||
|
([`e0868fa`](https://192.168.200.208:3000/sirmrak/motion_light/commit/e0868fae9ba86cd76eb070c5057960741eecba1e))
|
||||||
|
|
||||||
|
- Test commit for release
|
||||||
|
([`92b9392`](https://192.168.200.208:3000/sirmrak/motion_light/commit/92b93921498c7afd21d1dceec51518894c1efdcd))
|
||||||
|
|
||||||
- Изменил размер картинки
|
- Изменил размер картинки
|
||||||
([`d4c2548`](https://192.168.200.208:3000/sirmrak/motion_light/commit/d4c25484981a33ab4455027ffb4ef693256aa414))
|
([`d4c2548`](https://192.168.200.208:3000/sirmrak/motion_light/commit/d4c25484981a33ab4455027ffb4ef693256aa414))
|
||||||
|
|
||||||
|
|
||||||
## v1.0.0 (2026-07-09)
|
## v1.0.4 (2026-07-09)
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.3 (2026-07-08)
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.2 (2026-07-08)
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.1 (2026-07-08)
|
||||||
|
|
||||||
|
|
||||||
|
## v1.0.0 (2026-07-08)
|
||||||
|
|
||||||
- Initial Release
|
- Initial Release
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"domain": "motion_light",
|
"domain": "motion_light",
|
||||||
"name": "Motion Light",
|
"name": "Motion Light",
|
||||||
"version": "1.0.5",
|
"version": "1.0.9",
|
||||||
"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": [],
|
||||||
|
|||||||
@@ -1,29 +1,16 @@
|
|||||||
[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
|
|
||||||
[tool.semantic_release.remote]
|
|
||||||
type = "gitea"
|
|
||||||
# URL вашей Gitea (без trailing slash)
|
|
||||||
domain = "https://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