feat: ajouter une notification Discord pour le statut de déploiement

This commit is contained in:
2025-12-22 20:56:03 +01:00
parent 4030bdb693
commit c04bf9f82b

View File

@@ -58,4 +58,19 @@ jobs:
env: env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Discord Notification
uses: sarisia/actions-status-discord@v1
if: always() # S'exécute même si le build plante
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "Déploiement Portfolio"
description: |
Build terminé sur la branche **${{ github.ref_name }}**.
Commit: `${{ github.sha }}` par ${{ github.actor }}.
nofail: false
nodetail: false
image: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
username: "GitHub Actions"