Skip to content

ci: clean-deploy on tag and skip redundant verify#19

Closed
alexeid wants to merge 1 commit intoCompEvol:masterfrom
alexeid:ci-tag-deploy-fix
Closed

ci: clean-deploy on tag and skip redundant verify#19
alexeid wants to merge 1 commit intoCompEvol:masterfrom
alexeid:ci-tag-deploy-fix

Conversation

@alexeid
Copy link
Copy Markdown
Member

@alexeid alexeid commented May 3, 2026

Summary

  • Gate Build and test to non-tag pushes — the same mvn verify runs as part of the deploy lifecycle on tag, so it was running twice on tag pushes.
  • Replace two-step mvn deploy -Prelease -DskipTests with single mvn -Prelease clean deploy. The previous flow could leave unsigned package outputs in target/ from an earlier run, so the second invocation deployed artifact bytes that did not match the freshly generated .asc files. Sonatype rejected such tag releases with Invalid signature on zip/sources/javadoc while jar/pom verified. A single clean deploy from the tag avoids that.

Same fix that landed on morph-models (db64781), BEASTLabs (a13e75b), and beast-classic (8baef54).

Test plan

  • Push to non-tag branch: Build and test runs (mvn verify), publish step skipped.
  • Tag push (v*): Build and test skipped, Publish to Maven Central runs mvn -Prelease clean deploy.

- Gate "Build and test" to non-tag pushes (the same mvn verify runs as
  part of the deploy lifecycle on tag).
- Replace two-step `mvn deploy -Prelease -DskipTests` with single
  `mvn -Prelease clean deploy`. The previous flow left unsigned
  package outputs in target/ from an earlier run, so the second
  invocation could deploy artifact bytes that did not match the
  freshly generated .asc files. Sonatype rejected such tag releases
  with "Invalid signature" on zip/sources/javadoc while jar/pom
  verified. A single clean deploy from the tag avoids that.
@alexeid
Copy link
Copy Markdown
Member Author

alexeid commented May 4, 2026

Superseded by replacement PR opened from a CompEvol branch (no longer using a personal fork for migration). Closing this in favour of the new PR.

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