From 450c9cda48c053efdc3937bc827e695a2a0d8f20 Mon Sep 17 00:00:00 2001 From: xpcool-bot Date: Mon, 24 Aug 2026 22:45:05 +0800 Subject: [PATCH] ci: add PushPlus deployment notification --- .gitea/workflows/deploy.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 680b5e3..a4f52a2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -52,3 +52,17 @@ jobs: cp -r "$SRC"/. "$DST"/ chmod -R a+rX "$DST" echo "Deployed tool.xpcool.com -> $DST" + + - name: Notify success (PushPlus) + if: success() + run: | + curl -s -X POST "https://www.pushplus.plus/send" \ + -H "Content-Type: application/json" \ + -d '{"token":"5c20feb260304b218fcbe16694288684","title":"✅ 部署成功 tool.xpcool.com","content":"仓库: ${{ github.repository }}
分支: ${{ github.ref_name }}
提交: ${{ github.sha }}
触发人: ${{ github.actor }}
状态: 编译打包部署成功
访问: https://tool.xpcool.com","template":"html"}' + + - name: Notify failure (PushPlus) + if: failure() + run: | + curl -s -X POST "https://www.pushplus.plus/send" \ + -H "Content-Type: application/json" \ + -d '{"token":"5c20feb260304b218fcbe16694288684","title":"❌ 部署失败 tool.xpcool.com","content":"仓库: ${{ github.repository }}
分支: ${{ github.ref_name }}
提交: ${{ github.sha }}
触发人: ${{ github.actor }}
状态: 构建或部署失败
日志: https://git.xpcool.com/${{ github.repository }}/actions","template":"html"}'