diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bc78c9c4..1e2a34eb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 }}