Skip to content

refactor: migrate to Central Publisher Portal #58

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
May 5, 2025

Conversation

zihluwang
Copy link
Member

Closes #57

@zihluwang zihluwang changed the base branch from develop to main May 5, 2025 05:50
@zihluwang zihluwang requested review from Copilot and siujamo May 5, 2025 05:50
Copy link
Contributor

@Copilot 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 pull request refactors the deployment process to migrate to the Central Publisher Portal by adding a new deployment step in the GitHub Actions workflow.

  • Adds a new step to create a deployment via a POST request using curl
  • Uses GitHub secrets for authorization with the Central Publisher Portal
Files not reviewed (1)
  • gradle.properties: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/github-packages-publish.yml:79

  • Verify that an empty payload is acceptable for the Central Publisher Portal API. If the endpoint requires data, include the required payload in the curl command.
-d ''

…the step to fail

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zihluwang zihluwang requested a review from Copilot May 5, 2025 05:54
Copy link
Contributor

@Copilot 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 migrates the publication process to the Central Publisher Portal. It adds a new workflow step to create a deployment via a curl command and refactors the GitHub Actions workflow accordingly.

Files not reviewed (1)
  • gradle.properties: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/github-packages-publish.yml:79

  • Verify that sending an empty payload with '-d' is intentional. If the API requires a specific payload or a Content-Type header, update the command accordingly.
-d ''

@zihluwang zihluwang merged commit 11af681 into main May 5, 2025
@zihluwang zihluwang linked an issue May 5, 2025 that may be closed by this pull request
@zihluwang zihluwang deleted the feature/migration-to-central-publisher-portal branch May 5, 2025 06:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration of Artefact Upload to Sonatype Central Publisher Portal
2 participants