Skip to content

fix(ci): include .nojekyll when publishing the javadoc branch - #14

Merged
Pinont merged 1 commit into
mainfrom
cursor/fix-javadoc-nojekyll-23e0
Sep 8, 2026
Merged

fix(ci): include .nojekyll when publishing the javadoc branch#14
Pinont merged 1 commit into
mainfrom
cursor/fix-javadoc-nojekyll-23e0

Conversation

@Pinont

@Pinont Pinont commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Why

publish-javadoc on main failed after #10 (c7b8441): generate staged javadoc-site/.nojekyll, then publish died with cp: cannot stat '.../javadoc-site/.nojekyll'.

actions/upload-artifact@v4 (v4.4+) defaults include-hidden-files to false, so the dotfile never entered the artifact.

What

Small fix in .github/workflows/publish-javadoc.yml only:

  1. Set include-hidden-files: true on the HTML artifact upload.
  2. touch .nojekyll on the javadoc branch instead of copying it from the artifact, so publish still works if a future upload omits hidden files.

Does not invent MAVEN_REPO_TOKEN or git-push singularity-maven.

Verify

  • PR CI: publish-javadoc generate should pass; publish skips on pull_request (expected).
  • After merge to main, publish should push HTML to the javadoc branch without the missing .nojekyll error.
Open in Web Open in Cursor 

upload-artifact@v4 omits hidden files by default, so generate's
.nojekyll never reached publish. Include hidden files on upload and
touch .nojekyll on the javadoc branch instead of copying it.

Co-authored-by: Nonnipat Tangrojjanakhajorn <contact@pinont.me>
Copilot AI lite review requested due to automatic review settings September 8, 2026 02:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Pinont
Pinont merged commit 82e29c6 into main Sep 8, 2026
5 checks passed
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.

3 participants