ci(deploy): notify discord on deploy
authorxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 21:32:44 +0000 (16:32 -0500)
committerxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 21:32:44 +0000 (16:32 -0500)
.github/workflows/deploy.yml

index 9816d8a353e69cf9ea9264e9db9278056ce38dc1..0edd358402f7467ceba4d9dfeca19eb4f27cd1e6 100644 (file)
@@ -1,4 +1,4 @@
-name: Build
+name:  Deploy
 
 on:
   push:
@@ -30,4 +30,17 @@ jobs:
       uses: digitalocean/app_action/deploy@v2
       with:
         token: ${{ secrets.DIGITAL_OCEAN_ACCESS_TOKEN }}
+
+    - name: Discord notification
+      uses: Ilshidur/action-discord@master
+      env:
+        DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+      with:
+        args: |
+          ðŸš€ New deployment to Digital Ocean completed!
+          
+          Changes in this deployment:
+          ${{ join(github.event.commits.*.message, '\n') }}
+          
+          Deployed by: ${{ github.actor }}
     
\ No newline at end of file