From 332f905a61768a90e10ba303d9a085f7f0333899 Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Mon, 7 Oct 2024 00:31:41 +0300 Subject: [PATCH] Add package assets workflow --- .github/workflows/package_assets.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/package_assets.yaml diff --git a/.github/workflows/package_assets.yaml b/.github/workflows/package_assets.yaml new file mode 100644 index 0000000..27c490e --- /dev/null +++ b/.github/workflows/package_assets.yaml @@ -0,0 +1,24 @@ +name: Package assets + +on: + push: + tags: + - "*" + +jobs: + build: + name: Publish binaries + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Zip release assets + run: zip -r thermia.zip custom_components + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: thermia.zip + asset_name: thermia.zip + tag: ${{ github.ref }} + overwrite: true