Skip to content

Commit 54e5106

Browse files
committed
Use actions/setup-java to create the deployment settings.xml
1 parent 516a1fd commit 54e5106

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/maven.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ jobs:
168168
with:
169169
distribution: 'temurin'
170170
java-version: '11'
171+
server-id: 'ossrh'
172+
server-username: OSSRH_USERNAME
173+
server-password: OSSRH_TOKEN
171174

172175
- name: Cache Maven dependencies
173176
uses: actions/cache@v3
@@ -181,7 +184,7 @@ jobs:
181184

182185
- name: Deploy with Maven
183186
id: maven-build
184-
run: mvn -B -U -ntp -s .github/workflows/settings.xml source:jar deploy -Dmaven.test.skip=true -Dinvoker.skip=true
187+
run: mvn -B -U -ntp source:jar deploy -Dmaven.test.skip=true -Dinvoker.skip=true
185188
env:
186189
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
187190
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/settings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)