-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12f4969
commit 3022ff7
Showing
1,597 changed files
with
286,207 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # La rama principal desde la que se hará el push | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
# Paso 1: Checkout del repositorio | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true # Descargar submódulos (temas de Hugo) | ||
fetch-depth: 0 # Descargar todo el historial | ||
|
||
# Paso 2: Configuración de Hugo | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v3 | ||
with: | ||
hugo-version: '0.125.7' | ||
# extended: true # Habilita esto si necesitas soporte SCSS/SASS | ||
|
||
# Paso 3: Construcción del sitio | ||
- name: Build Hugo site | ||
run: hugo --minify --config hugo.toml | ||
|
||
# Paso 4: Despliegue en GitHub Pages | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
publish_branch: gh-ipl-pages # La rama de publicación en GitHub Pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.