Skip to content

Set up release workflow #3

Set up release workflow

Set up release workflow #3

Workflow file for this run

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: Check 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.event.release.tag_name }}/total?style=flat-square)"
generate_release_notes: true