-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECO-5180] feat: add release to maven central job (#73)
- Loading branch information
Showing
7 changed files
with
143 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Manual Release to Maven Central | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-on-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Ensure the workflow is being run for a published release | ||
- name: Validate Release | ||
run: | | ||
if [ -z "${{ github.event.release.tag_name }}" ]; then | ||
echo "This workflow must be run in the context of a published release."; | ||
exit 1; | ||
fi | ||
echo "Running workflow for release: ${{ github.event.release.tag_name }}"; | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Publish and release to Maven Central | ||
run: ./gradlew publishAndReleaseToMavenCentral | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POM_ARTIFACT_ID=chat-android | ||
POM_NAME=Ably Chat Android client library SDK | ||
POM_DESCRIPTION=An Android client library SDK for the Ably Chat product. | ||
POM_PACKAGING=aar |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,21 @@ org.gradle.parallel=true | |
# https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
android.useAndroidX=true | ||
|
||
android.enableBuildConfigAsBytecode=true | ||
# Maven Publish properties: | ||
GROUP=com.ably.chat | ||
VERSION_NAME=0.1.0-SNAPSHOT | ||
|
||
POM_INCEPTION_YEAR=2024 | ||
POM_URL=https://github.com/ably/ably-chat-kotlin | ||
POM_SCM_URL=https://github.com/ably/ably-chat-kotlin/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/ably/ably-chat-kotlin.git | ||
POM_SCM_DEV_CONNECTION=scm:git:[email protected]:ably/ably-chat-kotlin.git | ||
|
||
POM_LICENSE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENSE_URL=https://raw.github.com/ably/ably-chat-kotlin/main/LICENSE | ||
POM_LICENSE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=ably | ||
POM_DEVELOPER_NAME=Ably | ||
POM_DEVELOPER_URL=https://github.com/ably/ | ||
SONATYPE_STAGING_PROFILE=com.ably |
This file contains 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