From ef579af7c11ed73890bb658a3271cce5203304a6 Mon Sep 17 00:00:00 2001 From: smkrv <17809065+smkrv@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:27:46 +0300 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f1687c0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + build: + name: Build and upload release asset + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Create zip archive + run: | + cd custom_components + zip -r ../ha_text_ai.zip ha_text_ai \ + -x "ha_text_ai/__pycache__/*" \ + -x "*.pyc" \ + -x "*.pyo" \ + -x "*/__pycache__/*" \ + -x "*.DS_Store" + + - name: Upload release asset + uses: softprops/action-gh-release@v2 + with: + files: ha_text_ai.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}