From f48dded4684ab66f202a5295681af04d62918db8 Mon Sep 17 00:00:00 2001 From: xpcool-bot Date: Mon, 24 Aug 2026 23:06:33 +0800 Subject: [PATCH] ci: use Actions Secret for PushPlus token --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a4f52a2..ee4a7cf 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -58,11 +58,11 @@ jobs: 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"}' + -d '{"token":"${{ secrets.PUSHPLUS_TOKEN }}","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"}' + -d '{"token":"${{ secrets.PUSHPLUS_TOKEN }}","title":"❌ 部署失败 tool.xpcool.com","content":"仓库: ${{ github.repository }}
分支: ${{ github.ref_name }}
提交: ${{ github.sha }}
触发人: ${{ github.actor }}
状态: 构建或部署失败
日志: https://git.xpcool.com/${{ github.repository }}/actions","template":"html"}'