diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..61f9c87 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,29 @@ +name: "Release" + +on: + release: + types: + - "published" + +permissions: {} + +jobs: + release: + name: "Release" + runs-on: "ubuntu-latest" + permissions: + contents: write + steps: + - name: "Checkout the repository" + uses: "actions/checkout@v4.1.7" + + - name: "ZIP the integration directory" + shell: "bash" + run: | + cd "${{ github.workspace }}/custom_components/sems" + zip sems.zip -r ./ + + - name: "Upload the ZIP file to the release" + uses: "softprops/action-gh-release@v2.0.8" + with: + files: ${{ github.workspace }}/custom_components/sems/sems.zip