ci: add PushPlus deployment notification
All checks were successful
Build and Deploy (tool.xpcool.com) / build-and-deploy (push) Successful in 1m6s

This commit is contained in:
xpcool-bot 2026-08-24 22:45:05 +08:00
parent 57f7e71706
commit 450c9cda48

View File

@ -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 }}<br>分支: ${{ github.ref_name }}<br>提交: ${{ github.sha }}<br>触发人: ${{ github.actor }}<br>状态: 编译打包部署成功<br>访问: 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 }}<br>分支: ${{ github.ref_name }}<br>提交: ${{ github.sha }}<br>触发人: ${{ github.actor }}<br>状态: 构建或部署失败<br>日志: https://git.xpcool.com/${{ github.repository }}/actions","template":"html"}'