diff --git a/.github/workflows/dev-ci-cd.yml b/.github/workflows/dev-ci-cd.yml index b5b5dbce..8648b337 100644 --- a/.github/workflows/dev-ci-cd.yml +++ b/.github/workflows/dev-ci-cd.yml @@ -77,3 +77,31 @@ jobs: cd ~/deploy chmod +x ./deploy.sh ./deploy.sh + + - name: Send Discord notification on success + uses: tsickert/discord-webhook@b217a69 + if: success() + continue-on-error: true + with: + webhook-url: ${{ secrets.DEV_DEPLOY_DISCORD_WEBHOOK_URL }} + embed-title: "✅ [${{ github.repository }}] Development Deploy Succeeded" + embed-description: | + **Commit**: `${{ github.sha }}` + **Author**: `${{ github.actor }}` + **Message**: `${{ github.event.head_commit.message }}` + [View Committed Changes](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) + embed-color: 65280 + + - name: Send Discord notification on failure + uses: tsickert/discord-webhook@b217a69 + if: failure() + continue-on-error: true + with: + webhook-url: ${{ secrets.DEV_DEPLOY_DISCORD_WEBHOOK_URL }} + embed-title: "❌ [${{ github.repository }}] Development Deploy Failed" + embed-description: | + **Commit**: `${{ github.sha }}` + **Author**: `${{ github.actor }}` + An error occurred during the workflow execution. + [View Failed Workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) + embed-color: 16711680