Skip to content

Commit

Permalink
Переход на ZIP релизы
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Oct 13, 2024
1 parent 35ace1d commit 8e321d3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types:
- published

permissions:
contents: write

jobs:
release-zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Prepare release
run: |
cd ${{ github.workspace }}/custom_components/yandex_station_intents
zip -r yandex_station_intents.zip ./
- name: Upload zip
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/yandex_station_intents/yandex_station_intents.zip
asset_name: yandex_station_intents.zip
tag: ${{ github.ref }}
overwrite: true
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@

HACS > Интеграции > 3 точки (правый верхний угол) > Пользовательские репозитории > URL: `dext0r/ha-yandex-station-intents`, Категория: `Интеграция` > Нажать `Добавить` > Подождать > Выбрать `Yandex.Station Intents` в списке новых репозиториев > Нажать `Скачать`

**Способ 2:**
**Способ 2:** вручную, не рекомендуется

Вручную скопируйте папку `custom_components/yandex_station_intents` из [latest release](https://github.com/dext0r/ha-yandex-station-intents/releases/latest) в директорию `/config/custom_components`

После установки перезапустите Home Assistant.
* Скачайте архив `yandex_station_intents.zip` из [последнего релиза](https://github.com/dext0r/ha-yandex-station-intents/releases/latest)
* Создайте подкаталог `custom_components/yandex_station_intents` в каталоге где расположен файл `configuration.yaml`
* Распакуйте содержимое архива в `custom_components/yandex_station_intents`
* Перезапустите Home Assistant


## Настройка
Expand Down
8 changes: 5 additions & 3 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"country": ["RU"],
"homeassistant": "2023.9",
"name": "Yandex.Station Intents",
"render_readme": true
"homeassistant": "2023.9",
"country": ["RU"],
"render_readme": true,
"zip_release": true,
"filename": "yandex_station_intents.zip"
}

0 comments on commit 8e321d3

Please sign in to comment.