We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5353e5c commit 355f705Copy full SHA for 355f705
.github/workflows/maven-publish.yml
@@ -44,14 +44,13 @@ jobs:
44
java-version: '11'
45
distribution: 'temurin'
46
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
+ server-id: ossrh
49
server-username: MAVEN_USERNAME
50
server-password: MAVEN_PASSWORD
51
gpg-passphrase: PASSPHRASE
52
53
- name: Publish to Maven Central Repository
54
- run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
+ run: mvn -Pdeploy -Pproduction --batch-mode deploy
55
env:
56
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
57
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
0 commit comments