fix: allow dotfiles in page artifacts#3364
Closed
daniiiol wants to merge 2 commits intogohugoio:masterfrom
Closed
Conversation
Optimization for creating page artifacts to also allow DotFiles to be added (e.g., /static/.well-known/)
Member
|
Related:
There's no indication that the 3.01 => 4.0 update provides any tangible benefit. In my view the dot file restriction introduced in v4 was designed and implemented in a bit of a rush. I've subscribed to the issue and PR's above; perhaps they'll add a config param for this. In the interim, could we simply change our documentation to show V3 instead of V4? |
Contributor
Author
|
That would also be a solution for me. In any case, the current situation is unfortunate and not immediately apparent to everyone. |
jmooring
added a commit
to jmooring/hosting-github-pages
that referenced
this pull request
Feb 2, 2026
jmooring
added a commit
to jmooring/hosting-github-pages
that referenced
this pull request
Feb 2, 2026
jmooring
added a commit
to jmooring/hosting-github-pages
that referenced
this pull request
Feb 2, 2026
jmooring
added a commit
to jmooring/hugo-docs
that referenced
this pull request
Feb 2, 2026
Closes gohugoio#3364 Co-authored-by: Daniel Scherrer <daniel.scherrer@webjoda.ch>
pull bot
pushed a commit
to Randy88-art/hugoDocs
that referenced
this pull request
Feb 2, 2026
Closes gohugoio#3364 Co-authored-by: Daniel Scherrer <daniel.scherrer@webjoda.ch>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 Problem
e.g. Files under
/static/.well-known/were not served on GitHub Pages, even though:🔍 Root cause
The workflow used
actions/upload-pages-artifact@v4, which internally excludes all dotfiles and dot-directories:As a result,
public/.well-knownwas never included in the Pages artifact and therefore not deployed.✅ Solution
The workflow was patched to create and upload the Pages artifact without excluding dotfiles, ensuring that
.well-knownis included in the deployed output.No changes were required to Hugo configuration or project structure.