@ -0,0 +1,34 @@
|
|||||||
|
name: Send Email
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
send-mail:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: texlive/texlive:latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 自动编译
|
||||||
|
run: |
|
||||||
|
chmod +x ./complie.sh
|
||||||
|
./complie.sh
|
||||||
|
|
||||||
|
- name: Send mail
|
||||||
|
uses: betterfor/action-send-mail@main
|
||||||
|
with:
|
||||||
|
server_address: smtp.qiye.aliyun.com
|
||||||
|
server_port: 465
|
||||||
|
username: ${{ secrets.MAIL_USERNAME }}
|
||||||
|
password: ${{ secrets.MAIL_PASSWORD }}
|
||||||
|
subject: LaTeX Build Result
|
||||||
|
to: ${{secrets.RECIVER_EMAIL}}
|
||||||
|
from: LaTeX Auto Build<no-reply@cloud.jamaccao.cn>
|
||||||
|
body: Build job of ${{ github.repository }} completed successfully!
|
||||||
|
html_body: file://main.pdf
|
||||||
|
attachments: main.pdf
|
||||||
在新工单中引用
屏蔽一个用户