File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches : [ master ]
5
5
6
- workflow_dispatch :
7
- inputs :
8
- releaseversion :
9
- description : ' Release version'
10
- required : true
11
- default : ' 11.2.0'
12
6
jobs :
13
7
build :
14
8
@@ -34,13 +28,14 @@ jobs:
34
28
uses : actions/setup-java@v1
35
29
with : # running setup-java again overwrites the settings.xml
36
30
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
38
33
server-username : MAVEN_USERNAME # env variable for username in deploy
39
34
server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
40
35
41
36
42
37
- 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
44
39
env :
45
40
MAVEN_USERNAME : ${{secrets.MAVEN_USERNAME}}
46
41
MAVEN_CENTRAL_TOKEN : ${{secrets.MAVEN_PASSWORD}}
You can’t perform that action at this time.
0 commit comments