Skip to content

Commit fedf32e

Browse files
committed
Add logging of base url
1 parent 59bd178 commit fedf32e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/hugo.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,27 @@ jobs:
3838
run: |
3939
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4040
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
4142
- name: Install Dart Sass
4243
run: sudo snap install dart-sass
44+
4345
- name: Checkout
4446
uses: actions/checkout@v4
4547
with:
4648
submodules: recursive
4749
fetch-depth: 0
50+
4851
- name: Setup Pages
4952
id: pages
5053
uses: actions/configure-pages@v5
54+
55+
- name: Logging
56+
run: |
57+
echo ${{ steps.pages.outputs.base_url }}
58+
5159
- name: Install Node.js dependencies
5260
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
61+
5362
- name: Build with Hugo
5463
env:
5564
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
@@ -60,6 +69,7 @@ jobs:
6069
--gc \
6170
--minify \
6271
--baseURL "${{ steps.pages.outputs.base_url }}/"
72+
6373
- name: Upload artifact
6474
uses: actions/upload-pages-artifact@v3
6575
with:
@@ -76,4 +86,3 @@ jobs:
7686
- name: Deploy to GitHub Pages
7787
id: deployment
7888
uses: actions/deploy-pages@v4
79-

hugo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
baseURL = 'https://example.org/'
2-
relativeURLs = true
32
languageCode = 'en-us'
43
title = 'Git Mastery'
54

0 commit comments

Comments
 (0)