Skip to content

Commit bd9b925

Browse files
authored
Mise en ligne nouveau site web
1 parent 84ba3e3 commit bd9b925

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626

2727
- run: npm ci
2828

29-
- run: npm run predeploy
30-
- run: npm run deploy
31-
29+
- run: npm run build --if-present
30+
31+
- name: Verify build directory
32+
run: ls -la ./dist # Vérifie que le répertoire build existe et affiche son contenu
33+
34+
- name: Deploy to GitHub Pages
35+
if: success() # Déploie uniquement si les étapes précédentes réussissent
36+
run: npm run deploy # Exécute le script de déploiement
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Utilise le token GitHub pour l'authentification

dist/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)