File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 11# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2- name : Deploy Jekyll with GitHub Pages dependencies preinstalled
2+ name : Deploy Jekyll site to Pages
33
44on :
5- # Runs on pushes targeting the default branch
65 push :
76 branches : ["master"]
8-
9- # Allows you to run this workflow manually from the Actions tab
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
18- # Allow one concurrent deployment
14+ # Permette un solo deployment simultaneo
1915concurrency :
20- group : " pages"
2116 cancel-in-progress : true
17+ group : pages
2218
2319jobs :
24- # Build job
2520 build :
2621 runs-on : ubuntu-latest
2722 steps :
2823 - name : Checkout
29- uses : actions/checkout@v4
24+ uses : actions/checkout@v4 # Aggiornato a v4
25+
26+ # Carica le configurazioni di GitHub Pages
3027 - name : Setup Pages
31- uses : actions/configure-pages@v4
28+ uses : actions/configure-pages@v4 # Aggiornato a v4
29+
30+ # Genera il sito Jekyll
3231 - name : Build with Jekyll
3332 uses : actions/jekyll-build-pages@v1
3433 with :
3534 source : ./
3635 destination : ./_site
36+
37+ # Carica gli artefatti generati (il sito web)
3738 - name : Upload artifact
38- uses : actions/upload-pages-artifact@v1
39+ # AGGIORNAMENTO FONDAMENTALE PER RISOLVERE L'ERRORE
40+ uses : actions/upload-pages-artifact@v3 # Utilizza l'azione dedicata per Pages (che include l'upload corretto)
41+ with :
42+ path : ./_site
3943
40- # Deployment job
4144 deploy :
4245 environment :
4346 name : github-pages
4750 steps :
4851 - name : Deploy to GitHub Pages
4952 id : deployment
50- uses : actions/deploy-pages@v4
53+ uses : actions/deploy-pages@v4 # Aggiornato a v4
You can’t perform that action at this time.
0 commit comments