From 9c7dfe51a76de24d9b8fa32de25644f19d68c8f7 Mon Sep 17 00:00:00 2001 From: raghu Date: Mon, 15 Dec 2025 18:11:22 -0500 Subject: [PATCH] update notifications --- .gitea/workflows/deploy.yml | 38 +++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 45a3394..7dc0bbd 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -34,21 +34,27 @@ jobs: - name: Clean up old images run: docker image prune -f - # Email Notification (on success) + # Email notification using curl (Gmail SMTP) - 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 }} + run: | + curl --ssl-reqd \ + --url "smtps://smtp.gmail.com:465" \ + --user "${{ secrets.EMAIL_USERNAME }}:${{ secrets.EMAIL_PASSWORD }}" \ + --mail-from "${{ secrets.EMAIL_USERNAME }}" \ + --mail-rcpt "raghu6004@gmail.com" \ + --upload-file - << EOF + From: GitHub Actions <${{ secrets.EMAIL_USERNAME }}> + To: your-email@example.com + Subject: ✅ Deployment Successful - Portfolio + + Deployment completed successfully! + + Repository: ${{ github.repository }} + Branch: ${{ github.ref_name }} + Commit: ${{ github.sha }} + Workflow: ${{ github.workflow }} + Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + + Time: $(date) + EOF