feat: update yml
All checks were successful
Deploy Pages / Generate-Pages (push) Successful in 46s

This commit is contained in:
Linloir 2024-10-13 19:34:06 +08:00
parent b003232dd9
commit f4a7ecd057
Signed by: Linloir
GPG Key ID: 3D6B9EC35C923C81

View File

@ -48,3 +48,29 @@ jobs:
token: "${{ secrets.TOKEN }}"
- name: Call API to Update Caddy
run: curl https://upd.linloir.cn/update/blog.linloir.gitea.linloir.cn
- name: Send mail On Success
if: success()
uses: https://github.com/dawidd6/action-send-mail@v3
with:
server_address: smtp.qq.com
server_port: 465
secure: true
username: "${{ secrets.QQ_SMTP_USERNAME }}"
password: "${{ secrets.QQ_SMTP_TOKEN }}"
subject: 博客部署成功
to: 314507875@qq.com
from: Gitea Actions
body: 博客自动化部署执行成功, 前往 https://blog.linloir.cn 查看
- name: Send mail On Fail
if: failure()
uses: https://github.com/dawidd6/action-send-mail@v3
with:
server_address: smtp.qq.com
server_port: 465
secure: true
username: "${{ secrets.QQ_SMTP_USERNAME }}"
password: "${{ secrets.QQ_SMTP_TOKEN }}"
subject: 博客部署失败
to: 314507875@qq.com
from: Gitea Actions
body: 博客自动化部署执行失败, 前往 ${{ gitea.server_url }}/${{ gitea.repostiory }}/actions/runs/${{ gitea.run_id }} 查看执行日志