Open
Conversation
ebb6151 to
214e498
Compare
# The Problem Hidden files and directories (e.g. `.well-known`) are unconditionally excluded from the tar archive. There is no way to include them. (actions#129) # The Solution Add an `include-hidden-files` input (default `false`) that skips the `--exclude=.[^/]*` pattern when set to `true`. `.git` and `.github` are always excluded regardless. Test coverage added for the new option. I think this is the right approach rather than actions#134. Keep the default behavior safe, and give a sane option to users who know what they're doing. It was safe enough for upload-artifact, it should be safe enough here. # Context `actions/upload-artifact` introduced hidden file exclusion and a corresponding `include-hidden-files` option in [v4.4.0](https://github.com/actions/upload-artifact/releases/tag/v4.4.0). This action adopted the same exclusion behavior in its tar step but never added the equivalent option. This PR closes that gap. The only sane workaround without this option is to drop this action, manually create the tar, and hand it to `upload-artifact` directly. See [expressjs/expressjs.com#2173](expressjs/expressjs.com#2173) for an example.
214e498 to
f7615f5
Compare
|
I am also facing the same problem. I think this feature is very important! kudos! |
jmooring
added a commit
to jmooring/hosting-github-pages
that referenced
this pull request
Feb 2, 2026
Agreed. This seems like a no-brainer. |
Author
scutuatua-crypto
approved these changes
Feb 19, 2026
tsusdere
approved these changes
Feb 24, 2026
Contributor
tsusdere
left a comment
There was a problem hiding this comment.
From the Pages team we thank you for your contribution! ❤️
tsusdere
approved these changes
Feb 26, 2026
mauvehed
added a commit
to AustinHackers/austinhackers.github.io
that referenced
this pull request
Mar 20, 2026
v4 excludes dotfile directories from the tar archive, which silently broke .well-known/ paths. Pinned to v3 until upstream merges the include-hidden-files option (actions/upload-pages-artifact#137). Also removes the unnecessary .nojekyll file added in the previous commit since this is a Hugo site, not Jekyll.
tsusdere
approved these changes
Mar 24, 2026
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.
The Problem
Hidden files and directories (e.g.
.well-known) are unconditionally excluded from the tar archive. There is no way to include them. (#129)The Solution
Add an
include-hidden-filesinput (defaultfalse) that skips the--exclude=.[^/]*pattern when set totrue..gitand.githubare always excluded regardless. Test coverage added for the new option.I think this is the right approach rather than #134. Keep the default behavior safe, and give a sane option to users who know what they're doing. It was safe enough for upload-artifact, it should be safe enough here.
Context
actions/upload-artifactintroduced hidden file exclusion and a correspondinginclude-hidden-filesoption in v4.4.0. This action adopted the same exclusion behavior in its tar step but never added the equivalent option. This PR closes that gap.The only sane workaround without this option is to drop this action, manually create the tar, and hand it to
upload-artifactdirectly. See expressjs/expressjs.com#2173 for an example.