From 6f7513cf607fe58738b963bf44f6e731be5715f0 Mon Sep 17 00:00:00 2001 From: Viet Ngoc Date: Mon, 9 Dec 2024 02:13:16 +0100 Subject: [PATCH] chore: Update release workflow --- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..57f0c68 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Zip component + run: | + mkdir -p dist + zip -r dist/lunar_phase.zip custom_components/lunar_phase + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + generate_release_notes: true + files: dist/lunar_phase.zip