update notifications
Some checks failed
Deploy Portfolio / deploy (push) Failing after 1m35s

This commit is contained in:
2025-12-15 18:11:22 -05:00
parent 6994d7035c
commit 9c7dfe51a7

View File

@@ -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: |
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 }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Workflow: ${{ github.workflow }}
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Time: $(date)
EOF