File tree Expand file tree Collapse file tree 1 file changed +13
-21
lines changed
Expand file tree Collapse file tree 1 file changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,24 @@ name: Deploy MechMind Site
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66 workflow_dispatch :
77
8- permissions :
9- contents : read
10- pages : write
11- id-token : write
12-
138jobs :
149 deploy :
15- runs-on : ubuntu-latest # Runner oficial de GitHub (no "elubuntu-latest")
10+ runs-on : ubuntu-latest # Cambiado a runner oficial
1611
1712 steps :
18- - name : Checkout
19- uses : actions/checkout@v4
20-
21- - name : Setup Pages
22- uses : actions/configure-pages@v3
23-
24- - name : Build with Jekyll (opcional)
25- if : false # Desactívalo si no usas Jekyll
26-
27- - name : Upload artifact
28- uses : actions/upload-pages-artifact@v2
29- with :
30- path : ' .' # Sube todo el directorio raíz
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"
3120
3221 - name : Deploy to GitHub Pages
33- uses : actions/deploy-pages@v2
22+ uses : peaceiris/actions-gh-pages@v3
23+ with :
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ publish_dir : ./ # Publica desde la raíz
You can’t perform that action at this time.
0 commit comments