From f5f24f7dc94a1a2e381e5e27c07c3d7b9c4c261c Mon Sep 17 00:00:00 2001 From: Maysion Date: Sun, 20 Apr 2025 16:05:54 +0800 Subject: [PATCH] feat: disable mail --- .gitea/workflows/deploy.yml | 76 ++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c0e36f4..bba2927 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,18 +15,18 @@ jobs: contents: write steps: - - name: Send mail - uses: https://github.com/dawidd6/action-send-mail@v3 - with: - server_address: smtp.exmail.qq.com - server_port: 465 - secure: true - username: "${{ secrets.QQ_SMTP_USERNAME }}" - password: "${{ secrets.QQ_SMTP_TOKEN }}" - subject: 博客部署启动 - to: zhangmx67@mail2.sysu.edu.cn - from: Gitea Actions - body: 博客自动化部署开始执行, 前往 ${{ gitea.server_url }}/Maysion/blog/actions/runs/${{ gitea.run_id }} 查看执行日志 + # - name: Send mail + # uses: https://github.com/dawidd6/action-send-mail@v3 + # with: + # server_address: smtp.exmail.qq.com + # server_port: 465 + # secure: true + # username: "${{ secrets.QQ_SMTP_USERNAME }}" + # password: "${{ secrets.QQ_SMTP_TOKEN }}" + # subject: 博客部署启动 + # to: zhangmx67@mail2.sysu.edu.cn + # from: Gitea Actions + # body: 博客自动化部署开始执行, 前往 ${{ gitea.server_url }}/Maysion/blog/actions/runs/${{ gitea.run_id }} 查看执行日志 - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js @@ -61,29 +61,29 @@ jobs: token: "${{ secrets.TOKEN }}" - name: Call API to Update Caddy run: curl https://upd.masyionz.cn/update/blog.maysionz.cn - - name: Send mail On Success - if: success() - uses: https://github.com/dawidd6/action-send-mail@v3 - with: - server_address: smtp.exmail.qq.com - server_port: 465 - secure: true - username: "${{ secrets.QQ_SMTP_USERNAME }}" - password: "${{ secrets.QQ_SMTP_TOKEN }}" - subject: 博客部署成功 - to: zhangmx67@mail2.sysu.edu.cn - from: Gitea Actions - body: 博客自动化部署执行成功, 前往 https://blog.maysionz.cn 查看 - - name: Send mail On Fail - if: failure() - uses: https://github.com/dawidd6/action-send-mail@v3 - with: - server_address: smtp.exmail.qq.com - server_port: 465 - secure: true - username: "${{ secrets.QQ_SMTP_USERNAME }}" - password: "${{ secrets.QQ_SMTP_TOKEN }}" - subject: 博客部署失败 - to: zhangmx67@mail2.sysu.edu.cn - from: Gitea Actions - body: 博客自动化部署执行失败, 前往 ${{ gitea.server_url }}/Maysion/blog/actions/runs/${{ gitea.run_id }} 查看执行日志 + # - name: Send mail On Success + # if: success() + # uses: https://github.com/dawidd6/action-send-mail@v3 + # with: + # server_address: smtp.exmail.qq.com + # server_port: 465 + # secure: true + # username: "${{ secrets.QQ_SMTP_USERNAME }}" + # password: "${{ secrets.QQ_SMTP_TOKEN }}" + # subject: 博客部署成功 + # to: zhangmx67@mail2.sysu.edu.cn + # from: Gitea Actions + # body: 博客自动化部署执行成功, 前往 https://blog.maysionz.cn 查看 + # - name: Send mail On Fail + # if: failure() + # uses: https://github.com/dawidd6/action-send-mail@v3 + # with: + # server_address: smtp.exmail.qq.com + # server_port: 465 + # secure: true + # username: "${{ secrets.QQ_SMTP_USERNAME }}" + # password: "${{ secrets.QQ_SMTP_TOKEN }}" + # subject: 博客部署失败 + # to: zhangmx67@mail2.sysu.edu.cn + # from: Gitea Actions + # body: 博客自动化部署执行失败, 前往 ${{ gitea.server_url }}/Maysion/blog/actions/runs/${{ gitea.run_id }} 查看执行日志