浏览代码

ci: add action when new release is published

Daniil 3 年之前
父节点
当前提交
d6409e5889
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      .github/workflows/release.yml

+ 11 - 0
.github/workflows/release.yml

@@ -0,0 +1,11 @@
+name: Release landed
+on:
+  release:
+    types: [published]
+jobs:
+  - name: Notify in Discord
+    env:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+    uses: Ilshidur/action-discord@master
+    with:
+      args: '${{ github.event.tag_name }} is out 🚀 ${{ github.event.url }}\n${{ github.event.body }}'