Skip to content

Commit 355f705

Browse files
Remove references to settings.xml
There is none Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
1 parent 5353e5c commit 355f705

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/maven-publish.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ jobs:
4444
java-version: '11'
4545
distribution: 'temurin'
4646
cache: 'maven'
47-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
48-
settings-path: ${{ github.workspace }} # location for the settings.xml file
47+
server-id: ossrh
4948
server-username: MAVEN_USERNAME
5049
server-password: MAVEN_PASSWORD
5150
gpg-passphrase: PASSPHRASE
5251

5352
- name: Publish to Maven Central Repository
54-
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
53+
run: mvn -Pdeploy -Pproduction --batch-mode deploy
5554
env:
5655
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
5756
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)