Explorar o código

ci: add action when new release is published

Daniil %!s(int64=3) %!d(string=hai) anos
pai
achega
d6409e5889
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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 }}'