浏览代码

ci: add discord notification on release

Nicolas Giard 3 年之前
父节点
当前提交
81ad894ccd
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .github/workflows/build.yml

+ 6 - 0
.github/workflows/build.yml

@@ -369,6 +369,12 @@ jobs:
         message: |
           Wiki.js *${{ github.ref_name }}* has been released!
           See [release notes](https://github.com/requarks/wiki/releases) for details.
+          
+    - name: Notify Discord Channel
+      uses: sebastianpopp/discord-action@v1.0
+      with:
+        webhook: ${{ secrets.DISCORD_WEBHOOK }}
+        message: Wiki.js ${{ github.ref_name }} has been released! See https://github.com/requarks/wiki/releases for details.
 
   build-do-image:
     name: Build DigitalOcean Image