Skip to content

ci: prevent CI from deploying release versions unsigned - #421

Merged
lukaszlenart merged 1 commit into
release/6.0.xfrom
ci/prevent-unsigned-release-deploy
Jul 1, 2026
Merged

ci: prevent CI from deploying release versions unsigned#421
lukaszlenart merged 1 commit into
release/6.0.xfrom
ci/prevent-unsigned-release-deploy

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Problem

Releasing 6.1.0 failed publishing to the Central Portal with Missing signature for file for every artifact (run 28497025088).

Root cause: the Deploy SNAPSHOT job runs mvn deploy without -Prelease (no GPG signing) on every push to release/6.0.x. When mvn release:prepare pushes its [maven-release-plugin] prepare release 6.1.0 commit, the POM version is briefly the release version 6.1.0, so CI uploaded an unsigned 6.1.0 bundle to the Portal — and that unsigned deployment, not the signed one from release:perform, is what failed validation.

Fix

  • maven.yml: the deploy step now reads project.version and skips unless it ends in -SNAPSHOT, so a release-plugin commit can never trigger a release deploy.
  • struts2-bootstrap-showcase/pom.xml: add <skipPublishing>true</skipPublishing> to central-publishing-maven-plugin so the demo war is not published to Maven Central.

Same approach as struts2-jquery#923, adapted to this repo (no skipITs/integration-tests module here).

🤖 Generated with Claude Code

The Deploy SNAPSHOT job runs `mvn deploy` without GPG signing on every
push to release/6.0.x. When `release:prepare` pushes its
`[maven-release-plugin] prepare release X.Y.Z` commit, the POM version is
briefly the non-SNAPSHOT release version, so CI uploaded an unsigned
bundle to the Central Portal, which fails validation with
`Missing signature for file`.

- maven.yml: the deploy step now reads project.version and skips unless
  it ends in -SNAPSHOT, so a release-plugin commit can never trigger a
  release deploy.
- struts2-bootstrap-showcase/pom.xml: add skipPublishing=true to
  central-publishing-maven-plugin so the demo war is not published to
  Maven Central.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lukaszlenart
lukaszlenart enabled auto-merge (squash) July 1, 2026 06:47
@lukaszlenart
lukaszlenart merged commit 07de748 into release/6.0.x Jul 1, 2026
1 check passed
@lukaszlenart
lukaszlenart deleted the ci/prevent-unsigned-release-deploy branch July 1, 2026 06:48
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