diff --git a/.github/workflows/release-sdk.yaml b/.github/workflows/release-sdk.yaml
index f06e031614..e12373e851 100644
--- a/.github/workflows/release-sdk.yaml
+++ b/.github/workflows/release-sdk.yaml
@@ -21,8 +21,33 @@ jobs:
# jdk: ${{ matrix.jdk }}
release-sdk:
- uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@legacy
-# needs: [ run-examples ]
- secrets: inherit
- with:
- branch: ${{ inputs.core-ref }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout SDK branch
+ uses: actions/checkout@v4
+ with:
+ ref: ${{ inputs.branch }}
+ path: ${{ github.workspace }}
+
+ - name: Set up JDK 21
+ uses: actions/setup-java@v4
+ with:
+ java-version: '21'
+ distribution: 'temurin'
+ server-id: central
+ server-username: SONATYPE_USERNAME
+ server-password: SONATYPE_PASSWORD
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: GPG_PASSPHRASE
+ settings-path: ${{ github.workspace }}
+
+ - name: Release SDK
+ working-directory: ${{ github.workspace }}/code
+ env:
+ SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
+ SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
+ run: |
+ echo "Starting SDK Release - version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
+ mvn deploy --settings $GITHUB_WORKSPACE/settings.xml -B -U -P release -DskipTests=true
+ echo "SDK Released"
diff --git a/code/pom.xml b/code/pom.xml
index ace4fe7d62..b24ff7858b 100644
--- a/code/pom.xml
+++ b/code/pom.xml
@@ -7,7 +7,7 @@
5.4.1
EG rapid-sdk for Java
EG rapid-sdk v5.4.1
- https://github.com/ExpediaGroup/test-sdk
+ https://github.com/ExpediaGroup/rapid-java-sdk
2022
jar
@@ -28,9 +28,9 @@
- scm:git:git@github.com:ExpediaGroup/test-sdk.git
- scm:git:git@github.com:ExpediaGroup/test-sdk.git
- https://github.com/ExpediaGroup/test-sdk/
+ scm:git:git@github.com:ExpediaGroup/rapid-java-sdk.git
+ scm:git:git@github.com:ExpediaGroup/rapid-java-sdk.git
+ https://github.com/ExpediaGroup/rapid-java-sdk/
@@ -765,6 +765,16 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+ true
+
+
org.apache.maven.plugins
maven-gpg-plugin