Merge remote-tracking branch 'origin/main'
All checks were successful
Build and Deploy (tool.xpcool.com) / build-and-deploy (push) Successful in 4m55s

This commit is contained in:
夏犀麟 2026-08-31 17:02:00 +08:00
commit b9369df4d6

View File

@ -52,3 +52,17 @@ jobs:
cp -r "$SRC"/. "$DST"/ cp -r "$SRC"/. "$DST"/
chmod -R a+rX "$DST" chmod -R a+rX "$DST"
echo "Deployed tool.xpcool.com -> $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":"${{ secrets.PUSHPLUS_TOKEN }}","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":"${{ secrets.PUSHPLUS_TOKEN }}","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"}'