Skip to content

Commit

Permalink
Set up release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
black-roland committed Nov 2, 2024
1 parent 391c27e commit 852d945
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Release"

on:
push:
tags:
- "v*.*.*"

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Verify the release version"
uses: technote-space/package-version-check-action@v1
with:
COMMIT_DISABLED: true
PACKAGE_DIR: ${{ github.workspace }}/custom_components/yandexgpt_conversation
PACKAGE_NAME: manifest.json
- name: "Compress"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/yandexgpt_conversation"
zip -r "${{ runner.temp }}/yandexgpt.zip" ./
- name: "Publish"
uses: softprops/action-gh-release@v2
with:
draft: true
files: ${{ runner.temp }}/yandexgpt.zip
body: >
[![Количество скачиваний](https://img.shields.io/github/downloads/black-roland/homeassistant-yandexgpt/${{ github.ref_name }}/total?style=flat-square)](https://github.com/black-roland/homeassistant-yandexgpt/releases)
[![На кофе](https://img.shields.io/badge/%D0%BD%D0%B0%20%D0%BA%D0%BE%D1%84%D0%B5-cc3336?style=flat-square&logo=coffeescript)](https://mansmarthome.info/donate/#donationalerts)
generate_release_notes: true
2 changes: 1 addition & 1 deletion custom_components/yandexgpt_conversation/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "yandexgpt_conversation",
"name": "YandexGPT",
"version": "1.0.2",
"version": "1.0.3",
"after_dependencies": ["assist_pipeline", "intent"],
"codeowners": ["@black-roland"],
"config_flow": true,
Expand Down
4 changes: 3 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "YandexGPT",
"render_readme": true,
"homeassistant": "2024.11.0b0"
"homeassistant": "2024.11.0b0",
"zip_release": true,
"filename": "yandexgpt.zip"
}

0 comments on commit 852d945

Please sign in to comment.