更新 .gitea/workflows/prod_build_manual.yaml
This commit is contained in:
@@ -54,32 +54,3 @@ jobs:
|
|||||||
# 否则工作流可能会因为权限不足而失败。
|
# 否则工作流可能会因为权限不足而失败。
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
echo "Nginx 重载命令已发送。"
|
echo "Nginx 重载命令已发送。"
|
||||||
|
|
||||||
- name: 5.发送构建结果邮件
|
|
||||||
if: always() # 无论上一步是否失败,都执行此步骤
|
|
||||||
uses: dawidd6/action-send-mail@v3
|
|
||||||
with:
|
|
||||||
|
|
||||||
from: ${{ secrets.MAIL_USERNAME }}
|
|
||||||
# --- 邮件配置 ---
|
|
||||||
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
|
|
||||||
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
|
|
||||||
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
|
|
||||||
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
|
|
||||||
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
|
|
||||||
# 收件人列表,可以根据需要更改
|
|
||||||
to: 'xupei3360@163.com,txli@aidlab.hk,cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
|
|
||||||
|
|
||||||
# --- 邮件正文内容 ---
|
|
||||||
body: |
|
|
||||||
项目: AiDA back-java Develop
|
|
||||||
分支: dev/3.1_release_merge
|
|
||||||
|
|
||||||
🎉 构建结果: ${{ job.status }}
|
|
||||||
|
|
||||||
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
|
|
||||||
|
|
||||||
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
|
|
||||||
|
|
||||||
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
|
|
||||||
content_type: text/plain
|
|
||||||
Reference in New Issue
Block a user