-name: Build
+name: Deploy
on:
push:
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