Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

added github action, updates to pom for automatic release to maven central #56

Closed
wants to merge 1 commit into from

Conversation

xgp
Copy link

@xgp xgp commented Aug 29, 2024

Prerequisite steps:

Notes:

  • the action is currently set up to trigger on a merge to main. this will version and publish the artifact every time a merge is made. not sure if that's what you want.

@xgp
Copy link
Author

xgp commented Aug 29, 2024

Setup for #50

@xgp
Copy link
Author

xgp commented Sep 5, 2024

@robinbraemer This is essentially ready to go. In order to proceed and try to merge it you would need to:

  1. Tell me if it is a correct assumption that you want it to automatically publish to maven central when a merge is made to main. If not, let me know how you want to trigger the action.
  2. As in the prerequisites above,
    a. Set up a maven central / sonatype account, and set the OSSRH_USERNAME and OSSRH_PASSWORD as repository secrets
    b. Set your GPG_KEY_ID and GPG_KEY (public!) as repository secrets. You'll need to create a GPG key if you don't have one already
    c. Set an SSH_PRIVATE_KEY as a repository secret. I prefer to make a separate SSH keypair for each repository so if one gets compromised, you can always just diable it. To generate and upload a new key to Github, you can follow this guide.

Please let me know if I can help or answer any questions. Thank you again!

@xgp xgp closed this Sep 8, 2024
@robinbraemer
Copy link
Owner

Thank you! Why did you close?

@xgp
Copy link
Author

xgp commented Sep 12, 2024

I was under time pressure and I used a different approach to call the Cloudflare API, so I no longer need the library in Maven Central.

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.

2 participants