Skip to content

Commit

Permalink
feat: send email
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvanduocit committed Nov 14, 2020
1 parent 712eb14 commit d616e0f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,23 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ebook.epub
asset_name: ebook-${{ env.VERSION }}.epub
asset_content_type: application/epub+zip
asset_content_type: application/epub+zip

- name: Rename Ebook Filename
run: |
docker-apt-install calibre
ebook-convert ebook.epub ebook.mobi
- name: Send mail
uses: dawidd6/action-send-mail@master
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Github Actions job result
body: New ebook build
to: ${{secrets.MAIL_TO}}
from: ${{secrets.MAIL_FROM}}
content_type: text/html
attachments: ebook.mobi

0 comments on commit d616e0f

Please sign in to comment.