chore: create release workflows to publish repo to Maven Central#107
Closed
sasirekha3 wants to merge 3 commits intoaws-observability:mainfrom
Closed
chore: create release workflows to publish repo to Maven Central#107sasirekha3 wants to merge 3 commits intoaws-observability:mainfrom
sasirekha3 wants to merge 3 commits intoaws-observability:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Release Workflows
MAVEN_CENTRAL_PASSWORD_SECRET_ARN → ORG_GRADLE_PROJECT_sonatypePassword
Overview
Adds automated release workflows to publish the AWS OpenTelemetry Android library to Maven Central, replacing the previous Swift-focused release process.
Changes Made
GitHub Workflows (3 files)
• pre_release.yml: Creates version update PRs, reads version from gradle.properties instead of Info.plist
• release.yml: Builds, signs, and publishes to Maven Central with secure credential management
• post_release.yml: Bumps version for next development cycle using gradle.properties
Build Configuration
• core/build.gradle.kts: Added Maven publishing configuration with POM metadata, signing, and Sonatype repository setup
Key Features
• Secure Credentials: Uses AWS Secrets Manager for Maven Central and GPG signing credentials
• Automated Signing: GPG signs all artifacts before publishing
• Version Management: Automated version bumping and branch management
• Android-Specific: Proper JDK 17 and Android SDK setup for CI builds
Required Setup
• Sonatype OSSRH account and GPG signing key
• AWS Secrets Manager entries for credentials
• GitHub repository secrets configured with AWS ARNs
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.