From 0859c35aec6a924dc4f5ecd4fa31a935af9ef569 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Tue, 30 Dec 2025 16:56:27 +0300 Subject: [PATCH] fix: Change release workflow to trigger on release created event --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1687c0..0f44d6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,8 @@ name: Release on: - push: - tags: - - 'v*' + release: + types: [created] permissions: contents: write @@ -16,6 +15,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name }} - name: Create zip archive run: | @@ -30,6 +31,7 @@ jobs: - name: Upload release asset uses: softprops/action-gh-release@v2 with: + tag_name: ${{ github.event.release.tag_name }} files: ha_text_ai.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}