From a1f53fd0f4a99212bc34805744c4bbd6cae0849b Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Apr 2026 14:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/master=5F?= =?UTF-8?q?sellrt=5Fbuild=5Fmanual.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/master_sellrt_build_manual.yaml | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/.gitea/workflows/master_sellrt_build_manual.yaml b/.gitea/workflows/master_sellrt_build_manual.yaml index 3f89c0f..84b4427 100644 --- a/.gitea/workflows/master_sellrt_build_manual.yaml +++ b/.gitea/workflows/master_sellrt_build_manual.yaml @@ -144,33 +144,4 @@ jobs: echo "验证容器状态..." docker compose ps echo "部署完成!" - EOF_SSH - - - name: 10.发送构建结果邮件 - 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: 'cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱 - - # --- 邮件正文内容 --- - body: | - 项目: AiDA back-java Develop - 分支: master - - 🎉 构建结果: ${{ 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 \ No newline at end of file + EOF_SSH \ No newline at end of file