From 6d87e49164479f0e28d232bc90837d1c9a1fd5ee Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 5 Dec 2024 16:32:44 -0500 Subject: [PATCH] ci(deploy): notify discord on deploy --- .github/workflows/deploy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9816d8a..0edd358 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Build +name: Deploy on: push: @@ -30,4 +30,17 @@ jobs: uses: digitalocean/app_action/deploy@v2 with: token: ${{ secrets.DIGITAL_OCEAN_ACCESS_TOKEN }} + + - name: Discord notification + uses: Ilshidur/action-discord@master + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + with: + args: | + 🚀 New deployment to Digital Ocean completed! + + Changes in this deployment: + ${{ join(github.event.commits.*.message, '\n') }} + + Deployed by: ${{ github.actor }} \ No newline at end of file -- 2.25.1