From afee363c9ecba25fa71bb744369b9b94ce8474b5 Mon Sep 17 00:00:00 2001 From: PiX <69745008+pixincreate@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:42:24 +0530 Subject: [PATCH] Mess around with baseURL a bit --- .github/workflows/pr-preview.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index a9b25da..5aff97c 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -26,6 +26,12 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: @@ -35,12 +41,6 @@ jobs: - name: Install Dart Sass run: sudo snap install dart-sass - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - name: Setup Pages id: pages uses: actions/configure-pages@v3 @@ -57,7 +57,8 @@ jobs: hugo \ --gc \ --minify \ - --environment "${HUGO_ENVIRONMENT}" + --environment "${HUGO_ENVIRONMENT}" \ + --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact uses: actions/upload-pages-artifact@v1