From edee15a8c84c5481f8b0d7bfaac0e0ed859571b4 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Sat, 3 Oct 2020 01:19:12 -0600 Subject: [PATCH] Send message to discord when CLI is published (#6) --- .github/workflows/publish.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5e1a9c327..759d985a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -69,3 +69,15 @@ jobs: run: npm publish --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Discord Deployment Status Notification + uses: sarisia/actions-status-discord@v1 + with: + webhook: ${{ secrets.DEPLOY_WEBHOOK }} + status: ${{ job.status }} + title: "Published CLI" + description: "Published CLI version ${{ steps.vars.outputs.tag }} to Brew and NPM" + nofail: false + nodetail: false + username: Github Actions + avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png