File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Nuxt.js site to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ steps :
17+ # 1️⃣ Checkout le repo
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ # 2️⃣ Installer Node.js
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v3
24+ with :
25+ node-version : 20
26+
27+ # 3️⃣ Installer les dépendances Nuxt
28+ - name : Install dependencies
29+ run : npm ci
30+
31+ # 4️⃣ Build le site en statique
32+ - name : Build Nuxt.js
33+ run : npm run generate
34+
35+ # 5️⃣ Copier le fichier .exe dans le dist
36+ - name : Copy MagicaSetup.exe
37+ run : |
38+ mkdir -p dist/download
39+ curl -L -o dist/download/MagicaSetup.exe https://github.com/MaxiStudioDev/MagicaStudioPro/releases/download/1.0/MagicaSetup.exe
40+
41+ # 6️⃣ Déployer sur GitHub Pages
42+ - name : Deploy to GitHub Pages
43+ uses : actions/configure-pages@v5
44+
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : dist
49+
50+ - name : Deploy
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments