Skip to content

Commit 16e89b8

Browse files
committed
discord webhook message on deploy
1 parent 5217401 commit 16e89b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ jobs:
2323
with:
2424
apiToken: ${{ secrets.CF_API_TOKEN }}
2525
environment: "production"
26+
27+
# Send a deployment message to Discord via a webhook
28+
- name: Discord notification
29+
if: github.event_name == 'push'
30+
env:
31+
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK_URL }}
32+
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 # pin@0.3.2
33+
with:
34+
args: "The project `{{ EVENT_PAYLOAD.repository.full_name }}` has been
35+
**deployed** to **production** 🚀"

0 commit comments

Comments
 (0)