From 02c766ad2b94a134fd546b797912bed958c59881 Mon Sep 17 00:00:00 2001 From: bvweerd Date: Tue, 10 Jun 2025 14:09:26 +0200 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..956190e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Create release zip + +on: + release: + types: [published] + +jobs: + build-and-upload: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create zip file + run: | + zip -r simple_pid_controller.zip custom_components/simple_pid_controller + + - name: Upload release asset + uses: softprops/action-gh-release@v2 + with: + files: simple_pid_controller.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}