Skip to content

Conversation

@jonchurch
Copy link
Member

@jonchurch jonchurch commented Jan 30, 2026

upload-pages-artifact excludes hidden files, so .well-known isnt being
published. see actions/upload-pages-artifact#129

This PR drops that action to tar the _site dir ourselves and hands it
off to upload-artifact for publishing.

We probably don't even need to use that action if it ever has the config
changed (creating the tar is a one liner), but I'll open a PR to them with a include-hidden-files option
Edit: PR to upstream w/ the option

Pin checkout, setup-ruby, configure-pages, and deploy-pages
actions to specific commit SHAs for supply chain security.
upload-pages-artifact excludes hidden files, so .well-known isnt being
published. see actions/upload-pages-artifact#129

This PR drops that action to tar the _site dir ourselves and hands it
off to upload-artifact for publishing.

We probably don't even need to use that action if it ever has the config
changed, but I'll open a PR to them with a include-hidden-files option
@jonchurch jonchurch requested a review from a team as a code owner January 30, 2026 18:48
@netlify
Copy link

netlify bot commented Jan 30, 2026

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 778a497
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/697cfcf539c3cb0008afc28b
😎 Deploy Preview https://deploy-preview-2173--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (🔴 down 1 from production)
Accessibility: 87 (no change from production)
Best Practices: 100 (no change from production)
SEO: 94 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

jonchurch added a commit to jonchurch/upload-pages-artifact that referenced this pull request Jan 30, 2026
Hidden files and directories (e.g. `.well-known`) are unconditionally excluded from the tar archive. There is no way to include them. (actions#129)

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.

`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.

See [expressjs/expressjs.com#2173](expressjs/expressjs.com#2173) for an example of the only sane workaround without this option. Which is to drop this action, manually create the tar, and handing it to `upload-artifact` directly.
jonchurch added a commit to jonchurch/upload-pages-artifact that referenced this pull request Jan 30, 2026
Hidden files and directories (e.g. `.well-known`) are unconditionally excluded from the tar archive. There is no way to include them. (actions#129)

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.

`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.

See [expressjs/expressjs.com#2173](expressjs/expressjs.com#2173) for an example of the only sane workaround without this option. Which is to drop this action, manually create the tar, and handing it to `upload-artifact` directly.
jonchurch added a commit to jonchurch/upload-pages-artifact that referenced this pull request Jan 30, 2026
# 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.
@jonchurch jonchurch enabled auto-merge (squash) January 30, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant