Browse Source

ci: add action when new release is published

Daniil 3 years ago
parent
commit
d6409e5889
1 changed files with 11 additions and 0 deletions
  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 }}'