Take the publish branch from the POM, not the workflow - #65
Merged
Conversation
The workflow forced -Dscmpublish.scm.branch=gh-pages. That is right for project sites but wrong for codehaus-plexus.github.io: an organisation page is served from master, and that repository's POM correctly sets scmBranch to master. Forcing gh-pages would have overridden it and published the site to a branch nobody serves - silently, since the build would have succeeded. Parent 26 already sets gh-pages in pluginManagement, so every project site keeps the same target as before and nothing else changes. Same principle as content, which is also left to the POM.
slachiewicz
added a commit
to codehaus-plexus/codehaus-plexus.github.io
that referenced
this pull request
Aug 8, 2026
Calls the shared workflow from codehaus-plexus/.github#62, so the organisation site can be published from the Actions tab rather than by a maintainer running 'mvn site-deploy' locally. This site is served from the master branch, not gh-pages, because it is an organisation page. That target comes from scmBranch in this POM; the shared workflow leaves the branch to the POM rather than forcing gh-pages, which is codehaus-plexus/.github#65. Part of codehaus-plexus/.github#58
Member
Author
|
Superseded by #66, which is built on top of this. The premise here was right — the organisation page is served from #66 pushes with git directly instead. Once the workflow does the push itself it can no longer read |
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.
Found while adding the caller to
codehaus-plexus.github.io, which is the one repository that breaks the assumption.The workflow forces the publish branch:
That is correct for project sites. It is wrong for the organisation page:
codehaus-plexus.github.iois served frommaster, notgh-pages—— and its POM already says so:
The
-Dwould have overridden that and published the main site to a branch nobody serves. The build would have succeeded, so the only symptom would have been the site quietly never updating.The fix is to stop overriding it. Parent 26 sets
<scmBranch>gh-pages</scmBranch>inpluginManagement, so every project site targets exactly what it did before, and the one repository that needs something different already declares it. That is the same principle already applied tocontent, which the workflow also leaves to the POM.My mistake in #62 — I generalised from the fourteen project sites and did not check the org page.