Skip to content

Commit 7d196d7

Browse files
authored
Mise en ligne nouveau site web
Mise en ligne nouveau site web
1 parent b8a3b67 commit 7d196d7

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Deploy to GitHub Pages
2+
13
on:
24
push:
35
branches:
@@ -12,7 +14,25 @@ jobs:
1214
deploy:
1315
runs-on: ubuntu-latest
1416
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '20.15.0' # change to the version you wish to use
24+
25+
- run: npm ci
26+
27+
- run: npm run build
28+
29+
- name: Configure Git
30+
run: |
31+
git config --global user.email "paulwoisard@gmail.com"
32+
git config --global user.name "Paul WOISARD"
33+
1534
- id: build-publish
1635
uses: bitovi/github-actions-react-to-github-pages@v1.2.4
1736
with:
18-
path: dist # change to your build folder
37+
path: dist # change to your build folder (dist for Vite)
38+

0 commit comments

Comments
 (0)