Skip to content

Commit ce57e24

Browse files
authored
Update deploy.yml
1 parent 1632112 commit ce57e24

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
build:
@@ -16,11 +16,9 @@ jobs:
1616

1717
- name: Setup Node
1818
uses: actions/setup-node@v3
19-
with:
20-
node-version: '20.15.0' # Assurez-vous de spécifier la version de Node.js
2119

2220
- name: Install dependencies
23-
run: npm ci
21+
uses: bahmutov/npm-install@v1
2422

2523
- name: Build project
2624
run: npm run build
@@ -29,7 +27,7 @@ jobs:
2927
uses: actions/upload-artifact@v3
3028
with:
3129
name: production-files
32-
path: ./dist # Assurez-vous que Vite utilise le dossier dist pour la sortie de build
30+
path: ./dist
3331

3432
deploy:
3533
name: Deploy
@@ -38,20 +36,12 @@ jobs:
3836
if: github.ref == 'refs/heads/main'
3937

4038
steps:
41-
- name: Checkout repo
42-
uses: actions/checkout@v3
43-
4439
- name: Download artifact
4540
uses: actions/download-artifact@v3
4641
with:
4742
name: production-files
4843
path: ./dist
4944

50-
- name: Configure Git
51-
run: |
52-
git config --global user.email "paulwoisard@gmail.com"
53-
git config --global user.name "Paul WOISARD"
54-
5545
- name: Deploy to GitHub Pages
5646
uses: peaceiris/actions-gh-pages@v3
5747
with:

0 commit comments

Comments
 (0)