File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,15 @@ jobs:
1717 java-version : ' 11'
1818 distribution : ' adopt'
1919 server-id : ossrh
20- server-username : ${{ secrets.OSSRH_USERNAME }}
21- server-password : ${{ secrets.OSSRH_TOKEN }}
20+ server-username : MAVEN_USERNAME
21+ server-password : MAVEN_PASSWORD
2222 gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
23- gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
24- - name : Publish package
25- run : mvn clean deploy
23+ gpg-passphrase : GPG_PASSPHRASE
24+ - name : Publish to Maven Central Repository
25+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
26+ env :
27+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
29+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
2630
2731# run: mvn --batch-mode deploy
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2012 - 2023 Contentstack
3+ Copyright (c) 2012 - 2024 Contentstack
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.
0 commit comments