diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fe3d2bb..45a3394 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -33,3 +33,22 @@ jobs: - name: Clean up old images run: docker image prune -f + + # Email Notification (on success) + - name: Send success email + if: success() + uses: dawidd6/action-send-mail@v3 + with: + server_address: smtp.gmail.com + server_port: 587 + username: ${{ secrets.EMAIL_USERNAME }} + password: ${{ secrets.EMAIL_PASSWORD }} + subject: '✅ Deployment Successful - rc-portfolio' + to: raghu6004@gmail.com + from: GitHub Actions + body: | + Deployment completed successfully! + Repository: ${{ github.repository }} + Branch: ${{ github.ref }} + Commit: ${{ github.sha }} + Workflow: ${{ github.workflow }}