From 9158af8fb9d207d0f4291db3487ddff8859e0cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20D=C3=B6rner?= Date: Sat, 2 Nov 2024 14:29:03 +0100 Subject: [PATCH] release workflow on tags --- .github/workflows/release.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4eabd59..63b3a1c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,7 +1,9 @@ -name: Build & Test +name: Release on: - release: + push: + tags: + - "v*.*.*" jobs: release: @@ -11,11 +13,12 @@ jobs: - name: Archive Release uses: thedoctor0/zip-release@0.7.5 with: - type: 'zip' - directory: 'custom_components/mypyllant' - filename: 'mypyllant-component.zip' - - name: Upload Release - uses: ncipollo/release-action@v1.12.0 + type: zip + directory: custom_components/mypyllant + filename: mypyllant-component.zip + - name: Release + uses: softprops/action-gh-release@v2 with: - artifacts: "mypyllant-component.zip" - token: ${{ secrets.GITHUB_TOKEN }} + draft: true + generate_release_notes: true + files: mypyllant-component.zip \ No newline at end of file