File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,21 +2,32 @@ 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+
813jobs :
914 deploy :
10- runs-on : elubuntu-latest
15+ runs-on : ubuntu-latest # Runner oficial de GitHub (no "elubuntu-latest")
16+
1117 steps :
12- - uses : actions/checkout@v4
13- - name : Build
14- run : |
15- echo "🤖 Construyendo sitio MechMind..."
16- mkdir -p public
17- shopt -s extglob
18- cp -r !(public|.git|.github) public/
19- - uses : peaceiris/actions-gh-pages@v3
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
2029 with :
21- github_token : ${{ secrets.GITHUB_TOKEN }}
22- publish_dir : ./public/public
30+ path : ' .' # Sube todo el directorio raíz
31+
32+ - name : Deploy to GitHub Pages
33+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments