Fix Java and Go package publishing and CI/CD #204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Summary
This PR fixes Java and Go package publishing issues and ensures all CI/CD workflows are properly configured and working.
Fixes #192
🔍 Issues Identified
Java Package
gpg: signing failed: No secret keyerrorsetup-javaaction'sgpg-private-keyparameter was not properly importing the GPG keyGo Package
✅ Changes Implemented
1. Fixed Java Maven Central Publishing
File:
.github/workflows/java.ymlgpg-private-keyandgpg-passphraseparameters fromsetup-javaactiongpg --batch --importBefore:
After:
2. Added Go Package Publishing
File:
.github/workflows/go.ymlpublishReleasejob that runs after tests pass on main branchgo_X.Y.Z)Key Features:
3. Updated Java Package Version
File:
java/pom.xml0.1.0to0.13.0to match other language implementations (Rust and Python)🧪 Testing
All CI checks are now passing:
📋 Verification Steps
To verify the fixes work correctly:
Java Publishing: When Java files change and are merged to main, the workflow will:
java_0.13.0Go Publishing: When Go files change and are merged to main, the workflow will:
go_0.13.0🔗 Related Workflows
This implementation follows the same patterns as the existing publishing workflows:
.github/workflows/rust.yml- Publishes to crates.io.github/workflows/python.yml- Publishes to PyPI📝 Notes
GPG_PRIVATE_KEY,GPG_PASSPHRASE,OSSRH_USERNAME, andOSSRH_TOKENsecrets to be configuredGITHUB_TOKEN(automatically available)go_*tag + 1 or create version 0.13.0 if no tags existThis PR was created and tested by the AI issue solver