From 615f5b1a348f8e1b0282294461094174acfacae6 Mon Sep 17 00:00:00 2001 From: Julio Cesar Contreras Huerta <126512018+JulioContrerasH@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:40:27 +0200 Subject: [PATCH] up --- .github/workflows/gh-page.yml | 23 +++-------------------- hugo.toml | 4 ++-- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/gh-page.yml b/.github/workflows/gh-page.yml index 0bda995f4..87724ac99 100644 --- a/.github/workflows/gh-page.yml +++ b/.github/workflows/gh-page.yml @@ -21,31 +21,14 @@ jobs: uses: peaceiris/actions-hugo@v3 with: hugo-version: '0.125.7' + # extended: true - name: Build run: hugo --minify - # Deploy to gh-pages - - name: Deploy to gh-pages + - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs - - # Modify the hugo.toml file for gh-isp deployment - - name: Modify baseURL for gh-isp - run: | - sed -i 's|baseURL = "https://ipl-uv.github.io/"|baseURL = "https://isp.uv.es/github"|' hugo.toml - - - name: Build for gh-isp - run: hugo --minify - - # Deploy to gh-isp - - name: Deploy to gh-isp - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs - publish_branch: gh-isp \ No newline at end of file + publish_dir: ./docs \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index b34683ab2..fa92da968 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,5 @@ -baseURL = "https://ipl-uv.github.io/" -#baseURL = "https://isp.uv.es/github" +#baseURL = "https://ipl-uv.github.io/" +baseURL = "https://isp.uv.es/github" publishDir = "docs" #baseURL = "http://127.0.0.1/isp/"