From 8ad3737b0f07202e0626bc90a86edcfc43a27026 Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 28 Aug 2023 14:45:57 -0700 Subject: [PATCH] Post to discord on new release --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5720a39..9490f64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,28 +9,33 @@ permissions: {} jobs: release: - name: "Release" - runs-on: "ubuntu-latest" + name: Release + runs-on: ubuntu-latest permissions: contents: write steps: - - name: "Checkout the repository" - uses: "actions/checkout@v3.5.3" + - name: Checkout the repository + uses: actions/checkout@v3 - - name: "Adjust version number" + - name: Adjust version number shell: "bash" run: | yq -i -o json '.version="${{ github.event.release.tag_name }}"' \ "${{ github.workspace }}/custom_components/vantage/manifest.json" - - name: "ZIP the integration directory" + - name: ZIP the integration directory shell: "bash" run: | cd "${{ github.workspace }}/custom_components/vantage" zip vantage.zip -r ./ - - name: "Upload the ZIP file to the release" + - name: Upload the ZIP file to the release uses: softprops/action-gh-release@v0.1.15 with: files: ${{ github.workspace }}/custom_components/vantage/vantage.zip + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1.13.0 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + username: "Release Changelog" \ No newline at end of file