From c82ba90dde0e01483fa81df00bd60cc6d503c099 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 8 Sep 2026 02:58:05 +0000 Subject: [PATCH] fix(ci): do not require .nojekyll from the javadoc artifact 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 --- .github/workflows/publish-javadoc.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-javadoc.yml b/.github/workflows/publish-javadoc.yml index 3bf9396..6e69b9a 100644 --- a/.github/workflows/publish-javadoc.yml +++ b/.github/workflows/publish-javadoc.yml @@ -99,6 +99,8 @@ jobs: name: javadoc-html path: javadoc-site if-no-files-found: error + # v4.4+ drops dotfiles by default; keep .nojekyll in the artifact. + include-hidden-files: true publish: # Never publish from pull requests. workflow_dispatch may run off main. @@ -135,7 +137,10 @@ jobs: fi mkdir -p "${VERSION}" latest cp "${SITE}/index.html" index.html - cp "${SITE}/.nojekyll" .nojekyll + # Do not copy .nojekyll from the artifact: upload-artifact@v4 omits + # hidden files unless include-hidden-files is set. Recreate it here + # so publish still succeeds if a future upload drops it again. + touch .nojekyll rm -rf "${VERSION}" latest mkdir -p "${VERSION}" latest cp -R "${SITE}/${VERSION}/." "${VERSION}/"