Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioContrerasH committed Oct 10, 2024
1 parent 12f4969 commit 3022ff7
Show file tree
Hide file tree
Showing 1,597 changed files with 286,207 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/gh-page-git.yml
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
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baseURL = "https://ipl-uv.github.io/"
#baseURL = "https://isp.uv.es/github"
publishDir = "docs"
publishDir = "public"

#baseURL = "http://127.0.0.1/isp/"
#publishDir = "isp"
Expand Down
Loading

0 comments on commit 3022ff7

Please sign in to comment.