attempting to publish to maven central using nmcp#818
Conversation
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
|
@lhotari Much appreciated. |
|
I tested locally building the Central Portal Publish API zip file with the The result looks fine. One detail which might have to be revisited since the last time Maven Central publishing was used is creating a token for the Portal Publish API. This is mentioned in the documentation.
|
It should be already setup with secrets:
E.g., the JavaFastPFor project, uses these same tokens, so they work. |
|
I try merging this PR and testing it out and it failed even after I tried many things. So I am declaring it a dead-end. |
I added a comment about what went wrong in one of the last attempts: 96d851c#r177629944 . |
|
hey @lemire @lhotari i see this PR was merged to master but i dont see it in the commits, https://github.com/RoaringBitmap/RoaringBitmap/commits/master/ I'm happy to help with getting this working |
|
@lhotari @kevinjqliu It cannot work because one workflow using GITHUB_TOKEN cannot trigger the other workflows. So it was dead on arrival. |
This is an attempt (maybe the 10th attempt) at allowing maven central releases based on a proposal by @snazi
We currently have the following secrets:
We have an existing CI action that publishes to github actions when a release is created: https://github.com/RoaringBitmap/RoaringBitmap/blob/master/.github/workflows/releases.yml
I am not touching it (much).
Instead we add a
Create Releaseaction which would be manually triggered. It would then (eventually) trigger our existing release CI, and also a new one that would (hopefully) publish to maven central.For good measure, we also add a snapshot CI action.
Whether this is right, I do not know.
Fixes #749