Pārlūkot izejas kodu

ci: add slack releases channel notification

[skip ci]
Nicolas Giard 3 gadi atpakaļ
vecāks
revīzija
3469dabed2
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 11 0
      .github/workflows/build.yml

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

@@ -347,6 +347,17 @@ jobs:
         body: ${{ steps.changelog.outputs.changes }}
         token: ${{ github.token }}
         artifacts: 'drop/wiki-js.tar.gz,drop-win/wiki-js-windows.tar.gz'
+        
+    - name: Notify Slack Releases Channel
+      uses: slackapi/slack-github-action@v1.18.0
+      with:
+        payload: |
+          {
+            "text": "Wiki.js ${{ github.ref_name }} has been released."
+          }
+      env:
+        SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+        SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
 
   build-do-image:
     name: Build DigitalOcean Image