Skip to content

Commit 0c45bce

Browse files
author
Markus Donko-Huber
committed
Dynamic Page URL
1 parent 9c0a98d commit 0c45bce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/hugo.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
hugo \
5757
--minify \
58-
--baseURL "https://pets-lecture.github.io"
58+
--baseURL "${{ steps.pages.outputs.base_url }}/"
5959
- name: Upload artifact
6060
uses: actions/upload-pages-artifact@v3
6161
with:
@@ -65,8 +65,7 @@ jobs:
6565
deploy:
6666
environment:
6767
name: github-pages
68-
#url: ${{ steps.deployment.outputs.page_url }}
69-
url: https://pets-lecture.github.io
68+
url: ${{ steps.deployment.outputs.page_url }}
7069
runs-on: ubuntu-latest
7170
needs: build
7271
steps:

0 commit comments

Comments
 (0)