Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchayan721 committed Aug 10, 2023
1 parent 61e8a70 commit 8653929
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.HOST }} -p ${{ secrets.PORT }} -i ~/.ssh/id_rsa <<EOF
cd ~/IMS-Corp
mkdir -p emails // create emails folder if not exist
mkdir -p emails
echo "$content" > emails/notify_deployment-staging.html
exit
EOF
echo "::set-output name=content::$content"
scp -P ${{ secrets.PORT }} -i ~/.ssh/id_rsa ${{ secrets.USERNAME }}@${{ secrets.HOST }}:~/IMS-Corp/emails/notify_deployment-staging.html ./email.html
- name: Send Email
uses: dawidd6/action-send-mail@v2
Expand All @@ -60,8 +60,7 @@ jobs:
username: ${{ secrets.MAIL_SERVER_UID }}
password: ${{ secrets.MAIL_SERVER_PASS }}
subject: "IMS-Corp Deployment on Staging"
body: "the body of the email is ${{ steps.prepare_email.outputs.content }}"
body: "./email.html"
content_type: "text/html"
convert_markdown: true
from: "github[bot] <${{ secrets.MAIL_SERVER_UID }}>"
to: "bhunia.sanchayan@gmail.com"

0 comments on commit 8653929

Please sign in to comment.