File tree Expand file tree Collapse file tree 1 file changed +25
-13
lines changed
Expand file tree Collapse file tree 1 file changed +25
-13
lines changed Original file line number Diff line number Diff line change 11name : Deploy MechMind Site
2-
32on :
43 push :
54 branches : ["main"]
65 workflow_dispatch :
76
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
15+
816jobs :
917 deploy :
10- runs-on : ubuntu-latest # Cambiado a runner oficial
18+ environment :
19+ name : github-pages
20+ url : ${{ steps.deployment.outputs.page_url }}
21+ runs-on : ubuntu-latest
1122
1223 steps :
13- - uses : actions/checkout@v4 # Paso 1: Checkout del código
14-
15- - name : Build Site # Paso 2: Build
16- run : | # Añadido 'run' aquí
17- echo "🚀 Construyendo sitio MechMind..."
18- # Aquí puedes añadir comandos de build si necesitas
19- echo "✅ Build completado"
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Pages
28+ uses : actions/configure-pages@v4
29+
30+ - name : Upload artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : ' .'
2034
2135 - name : Deploy to GitHub Pages
22- uses : peaceiris/actions-gh-pages@v3
23- with :
24- github_token : ${{ secrets.GITHUB_TOKEN }}
25- publish_dir : ./ # Publica desde la raíz
36+ id : deployment
37+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments