Skip to content

Conversation

@oetr
Copy link
Contributor

@oetr oetr commented Nov 13, 2025

Just push the tag to release.

@oetr oetr force-pushed the CIF-1762-automatic-release branch from 01b1f92 to c726dce Compare November 13, 2025 23:18
@oetr oetr force-pushed the CIF-1762-automatic-release branch from c726dce to d9e3b05 Compare November 14, 2025 13:20
@oetr oetr force-pushed the CIF-1762-automatic-release branch from d9e3b05 to dc8f4c7 Compare November 14, 2025 13:51
@oetr oetr marked this pull request as ready for review November 14, 2025 14:01
Copilot AI review requested due to automatic review settings November 14, 2025 14:01
Copilot finished reviewing on behalf of oetr November 14, 2025 14:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR automates the release process to Maven Central by replacing manual deployment with an automated API-based upload using a bearer token.

Key Changes:

  • Removed manual Maven credentials (username/password) in favor of automated token-based authentication
  • Added automatic deployment to Maven Central via Sonatype API with bearer token
  • Streamlined release process by removing the draft release step and manual upload requirement

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
deploy/deploy.sh Removed MAVEN_USER and MAVEN_PASSWORD environment variable checks and parameters from bazel commands, as deployment now uses bearer token authentication
CONTRIBUTING.md Updated release documentation to reflect automated workflow and provided fallback manual deployment instructions
.github/workflows/prerelease.yaml Renamed job to maven_deploy, added automated deployment step using Sonatype API with bearer token, changed bundle artifact to tar.gz format, and removed draft flag from release creation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@oetr oetr force-pushed the CIF-1762-automatic-release branch from cc1ca50 to 2d78a82 Compare November 14, 2025 14:16
@oetr oetr requested a review from a team November 18, 2025 08:54
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
with:
generate_release_notes: true
draft: true
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO it could still be useful to have a manual process to publish from a draft github release so that we can take a look and clean up the release notes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't do this for cifuzz, why is Jazzer different?
But combined with the point below it makes sense to delay the release on GH until the dev has verified that it's actually published. I'll revert this!

--fail-with-body \
--header "Authorization: Bearer ${{ secrets.SONATYPE_BEARER_TOKEN }}" \
--form bundle=@_tmp/jazzer-maven-central-bundle.tar.gz \
"https://central.sonatype.com/api/v1/publisher/upload?name=Jazzer%20${TAG#v}&publishingType=AUTOMATIC"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know how error during publishing would show up?
We could wait for successful publishing by polling the status API https://central.sonatype.org/publish/publish-portal-api/#verify-status-of-the-deployment. Or just make it a manual step to verify that the release was published.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes, I though about it, but deemed not worth the effort!
Maybe the dev should just check the status and then release the GH draft after the publishing was successful?

@oetr oetr force-pushed the CIF-1762-automatic-release branch from 2d78a82 to 1d95666 Compare November 21, 2025 12:28
@oetr oetr requested a review from simonresch November 21, 2025 12:28
@oetr oetr changed the title automatic release to Maven Central almost-automatic release to Maven Central Nov 21, 2025
@oetr oetr changed the title almost-automatic release to Maven Central almost automatic release to Maven Central Nov 21, 2025
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