Skip to content

Commit a693c86

Browse files
authored
Update maven-publish.yml
1 parent 277bff6 commit a693c86

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ on:
33
push:
44
branches: [ master ]
55

6-
workflow_dispatch:
7-
inputs:
8-
releaseversion:
9-
description: 'Release version'
10-
required: true
11-
default: '11.2.0'
126
jobs:
137
build:
148

@@ -34,13 +28,14 @@ jobs:
3428
uses: actions/setup-java@v1
3529
with: # running setup-java again overwrites the settings.xml
3630
java-version: 1.8
37-
server-id: maven # Value of the distributionManagement/repository/id field of the pom.xml
31+
distribution: 'adopt'
32+
server-id: ossrh
3833
server-username: MAVEN_USERNAME # env variable for username in deploy
3934
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
4035

4136

4237
- name: Publish to Apache Maven Central
43-
run: mvn deploy --file LoginRadius-JavaSDK/pom.xml
38+
run: mvn --batch-mode deploy --file LoginRadius-JavaSDK/pom.xml
4439
env:
4540
MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}}
4641
MAVEN_CENTRAL_TOKEN: ${{secrets.MAVEN_PASSWORD}}

0 commit comments

Comments
 (0)