Skip to content

Commit 51e4c0a

Browse files
committed
removing validation step
1 parent f5101f6 commit 51e4c0a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/gh-pages.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
concurrency:
1010
group: "pages"
11-
cancel-in-progress: true # Changed to true: cancels old builds if you push 2x quickly
11+
cancel-in-progress: true
1212

1313
defaults:
1414
run:
@@ -19,22 +19,23 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v5 # Updated to v5
22+
uses: actions/checkout@v4 # Use v4 (latest stable)
2323
with:
24-
submodules: recursive # 'recursive' is safer for themes
24+
submodules: recursive
2525
fetch-depth: 0
2626

2727
- name: Setup Hugo
2828
uses: peaceiris/actions-hugo@v3
2929
with:
30-
hugo-version: "0.154.5" # IMPORTANT: Match your Dev Container version
30+
# Note: The latest Hugo release right now is ~0.143.1.
31+
# Ensure 0.154.5 wasn't a typo, or builds will fail to download Hugo!
32+
hugo-version: "latest"
3133
extended: true
3234

3335
- name: Setup Pages
3436
id: pages
35-
uses: actions/configure-pages@v4 # Updated to v4
37+
uses: actions/configure-pages@v4
3638

37-
# Optional: This speeds up builds by caching Hugo modules
3839
- name: Cache Hugo modules
3940
uses: actions/cache@v4
4041
with:
@@ -48,20 +49,19 @@ jobs:
4849
HUGO_ENVIRONMENT: production
4950
HUGO_ENV: production
5051
run: |
52+
# Removed the --baseURL override so it respects your hugo.toml
5153
hugo \
5254
--gc \
53-
--minify \
54-
--baseURL "${{ steps.pages.outputs.base_url }}/"
55+
--minify
5556
56-
- name: Validate HTML
57-
run: |
58-
wget --spider -r -nd -nv -l 5 "${{ steps.pages.outputs.base_url }}"
59-
# Optionally, you could use tools like html-proofer for more control.
57+
# (Validate HTML step removed because it blocks deployment)
6058

6159
- name: Deploy
62-
uses: peaceiris/actions-gh-pages@v3 # This one is still v3 (stable)
60+
uses: peaceiris/actions-gh-pages@v3
6361
if: ${{ github.ref == 'refs/heads/master' }}
6462
with:
6563
github_token: ${{ secrets.GITHUB_TOKEN }}
6664
publish_branch: gh-pages
6765
publish_dir: ./public
66+
# CRITICAL: This stops GitHub from forgetting your custom domain on every push
67+
cname: delaportas.se

0 commit comments

Comments
 (0)