From 760b2bcaaecea98f0261b0790ca244e4a9029df3 Mon Sep 17 00:00:00 2001 From: Julio Cesar Contreras Huerta <126512018+JulioContrerasH@users.noreply.github.com> Date: Thu, 10 Oct 2024 00:57:15 +0200 Subject: [PATCH] up --- .github/workflows/gh-page.yml | 22 +++++++++++++++++----- hugo.toml | 4 ++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gh-page.yml b/.github/workflows/gh-page.yml index 87724ac99..7cfd7244f 100644 --- a/.github/workflows/gh-page.yml +++ b/.github/workflows/gh-page.yml @@ -21,14 +21,26 @@ jobs: uses: peaceiris/actions-hugo@v3 with: hugo-version: '0.125.7' - # extended: true - - name: Build - run: hugo --minify + # Build for gh-pages + - name: Build for gh-pages + run: hugo --minify -b "https://ipl-uv.github.io/" -d ./docs - - name: Deploy + - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs \ No newline at end of file + publish_dir: ./docs + + # Build for gh-isp + - name: Build for gh-isp + run: hugo --minify -b "https://isp.uv.es/github" -d ./docs + + - 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 diff --git a/hugo.toml b/hugo.toml index fa92da968..8e002c4b8 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/"