Skip to content

Commit

Permalink
CI/CD add discord alert
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsvs committed Oct 4, 2024
1 parent fb87166 commit cd45f17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,19 @@ jobs:
port: ${{ secrets.PORT }}
command_timeout: 1m
script: cd "/home/aukus/deploy/frontend/prod" && sudo systemctl stop nginx && rm -rf build && mv deploy_build/build ./ && sudo systemctl start nginx

- name: Aukus frontend build and upload success!
uses: rjstone/discord-webhook-notify@v1
if: success()
with:
severity: info
details: Aukus frontend build and upload success!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}

- name: Aukus frontend build and upload failure!
uses: rjstone/discord-webhook-notify@v1
if: failure()
with:
severity: error
details: Aukus frontend build and upload failure!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit cd45f17

Please sign in to comment.