File tree Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
2-
32on :
43 push :
54 branches :
6- - main # Usa 'master' se quello è il tuo branch principale
7-
8- permissions :
9- contents : write # necessario per pushare su gh-pages
10-
5+ - main
116jobs :
12- build- deploy :
7+ deploy :
138 runs-on : ubuntu-latest
14-
159 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v4
18-
19- - name : Setup Node.js
20- uses : actions/setup-node@v4
10+ - uses : actions/checkout@v3
11+ - uses : actions/setup-node@v3
2112 with :
22- node-version : 20
23-
24- - name : Install dependencies
25- run : npm ci
26-
27- - name : Build project
28- run : npm run build
29-
30- - name : Deploy to GitHub Pages
31- uses : peaceiris/actions-gh-pages@v4
13+ node-version : 18
14+ - run : npm install
15+ - run : npm run build
16+ - uses : peaceiris/actions-gh-pages@v3
3217 with :
3318 github_token : ${{ secrets.GITHUB_TOKEN }}
3419 publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments