Skip to content

Commit

Permalink
test: try adding another slash between baseURL variables
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed Dec 11, 2024
1 parent 79ebb4f commit 389f728
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/pr-build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,16 @@ jobs:
with:
submodules: recursive

- name: Print preview link to PR
run: |
echo "Preview link ${{ env.HUGO_BASEURL }}pr${{ github.event.pull_request.number }}/"
- name: Build website with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: preview
HUGO_ENV: preview
run: |
hugo \
--baseURL "${{ env.HUGO_BASEURL }}pr${{ github.event.pull_request.number }}/" \
--gc \
--minify
- name: Print preview link to PR
run: |
echo "Preview link ${{ env.HUGO_BASEURL }}pr${{ github.event.pull_request.number }}/"
run: hugo --baseURL "${{ env.HUGO_BASEURL }}pr${{ github.event.pull_request.number }}/" --gc --minify

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 389f728

Please sign in to comment.