Skip to content

Commit f0888b4

Browse files
authored
Update node.js.yml
Mise en ligne nouveau site web
1 parent f8de9c9 commit f0888b4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/node.js.yml

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

2727
- run: npm ci
2828

29-
- run: npm run build --if-present
30-
31-
- name: Deploy to GitHub Pages
32-
if: success() # Ajoute cette condition pour déployer uniquement si les tests et la build réussissent
33-
uses: peaceiris/actions-gh-pages@v3
34-
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }} # Assurez-vous d'utiliser le secret GITHUB_TOKEN
36-
publish_dir: ./build
29+
- run: npm run predeploy
30+
- run: npm deploy
31+

0 commit comments

Comments
 (0)