From 9fe643256ae733ec8d6f2d5491655a814dcd3e04 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 | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index a9b25da..3abffc6 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,11 @@ jobs: hugo \ --gc \ --minify \ - --environment "${HUGO_ENVIRONMENT}" + --environment "${HUGO_ENVIRONMENT}" \ + --verbose + + echo "${{ steps.pages.outputs.base_url }}/" + echo "${{ env.HUGO_ENVIRONMENT }}" - name: Upload artifact uses: actions/upload-pages-artifact@v1 @@ -74,4 +78,7 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2 + + - name: print + run: echo ${{ steps.deployment.outputs.page_url }} \ No newline at end of file