ci: add PushPlus deployment notification
All checks were successful
Build and Deploy (tool.xpcool.com) / build-and-deploy (push) Successful in 1m1s
All checks were successful
Build and Deploy (tool.xpcool.com) / build-and-deploy (push) Successful in 1m1s
This commit is contained in:
parent
954b9e9d8a
commit
1ff576c704
@ -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":"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"}'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user