File tree Expand file tree Collapse file tree 2 files changed +44
-9
lines changed
Expand file tree Collapse file tree 2 files changed +44
-9
lines changed Original file line number Diff line number Diff line change 2121# jdk: ${{ matrix.jdk }}
2222
2323 release-sdk :
24- uses : ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@legacy
25- # needs: [ run-examples ]
26- secrets : inherit
27- with :
28- branch : ${{ inputs.core-ref }}
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Set up JDK 21
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : ' 21'
30+ distribution : ' temurin'
31+ server-id : central
32+ server-username : SONATYPE_USERNAME
33+ server-password : SONATYPE_PASSWORD
34+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
35+ gpg-passphrase : GPG_PASSPHRASE
36+ settings-path : ${{ github.workspace }}
37+
38+ - name : Checkout SDK branch
39+ uses : actions/checkout@v4
40+ with :
41+ ref : ${{ inputs.branch }}
42+ path : product-repo
43+
44+ - name : Release SDK
45+ working-directory : product-repo/${{ inputs.sdk_path }}
46+ env :
47+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
48+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
49+ GPG_PASSPHRASE : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
50+ run : |
51+ echo "Starting SDK Release - version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
52+ mvn deploy --settings $GITHUB_WORKSPACE/settings.xml -B -U -P release -DskipTests=true
53+ echo "SDK Released"
Original file line number Diff line number Diff line change 77 <version >5.4.1</version >
88 <name >EG rapid-sdk for Java</name >
99 <description >EG rapid-sdk v5.4.1</description >
10- <url >https://github.com/ExpediaGroup/test -sdk</url >
10+ <url >https://github.com/ExpediaGroup/rapid-java -sdk</url >
1111 <inceptionYear >2022</inceptionYear >
1212 <packaging >jar</packaging >
1313
2828 </developers >
2929
3030 <scm >
31- <
connection >scm:git:
[email protected] :ExpediaGroup/
test -sdk.git</
connection >
32- <
developerConnection >scm:git:
[email protected] :ExpediaGroup/
test -sdk.git</
developerConnection >
33- <url >https://github.com/ExpediaGroup/test -sdk/</url >
31+ <
connection >scm:git:
[email protected] :ExpediaGroup/
rapid-java -sdk.git</
connection >
32+ <
developerConnection >scm:git:
[email protected] :ExpediaGroup/
rapid-java -sdk.git</
developerConnection >
33+ <url >https://github.com/ExpediaGroup/rapid-java -sdk/</url >
3434 </scm >
3535
3636 <distributionManagement >
160160
161161 <build >
162162 <plugins >
163+ <plugin >
164+ <groupId >org.sonatype.central</groupId >
165+ <artifactId >central-publishing-maven-plugin</artifactId >
166+ <version >0.9.0</version >
167+ <extensions >true</extensions >
168+ <configuration >
169+ <publishingServerId >central</publishingServerId >
170+ <autoPublish >true</autoPublish >
171+ </configuration >
172+ </plugin >
163173 <plugin >
164174 <groupId >org.apache.maven.plugins</groupId >
165175 <artifactId >maven-resources-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments