Skip to content

Commit 7eb7f53

Browse files
committed
Mise à jour du workflow de déploiement GitHub Actions
- Configuration de Node.js version 20 avec pnpm - Ajout d'étapes pour installer les dépendances et construire l'application Astro - Mise en place du téléchargement de l'artefact de build
1 parent d74cc45 commit 7eb7f53

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,29 @@ jobs:
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: 'pnpm'
28+
29+
- name: Install pnpm
30+
run: npm install -g pnpm
31+
32+
- name: Install dependencies
33+
run: |
34+
rm -rf node_modules dist .astro pnpm-lock.yaml
35+
pnpm install
36+
37+
- name: Build Astro app
38+
run: pnpm run build
39+
40+
- name: Upload build artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: astro-dist
44+
path: dist
45+
2546
# with:
2647
# path: . # The root location of your Astro project inside the repository. (optional)
2748
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)

0 commit comments

Comments
 (0)