File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1- name : Release to GitHub Packages
1+ name : Release
22
33on :
44 workflow_dispatch :
2626 git config user.email "actions@github.com"
2727 git config user.name "GitHub Actions"
2828
29+ - id : install-secret-key
30+ name : Install gpg secret key
31+ run : |
32+ # Install gpg secret key
33+ cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
34+ # Verify gpg secret key
35+ gpg --list-secret-keys --keyid-format LONG
36+
2937 - name : Setup Java
3038 uses : actions/setup-java@v3
3139 with :
4351 git diff-index --quiet HEAD || git commit -m "Releasing version ${{ github.event.inputs.version }}" pom.xml
4452
4553 - name : Publish to GitHub Packages
46- run : mvn -ntp --batch-mode clean deploy -Prelease
54+ run : mvn -ntp --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy -Prelease
4755 env :
4856 GITHUB_TOKEN : ${{ github.token }}
4957
5664 server-username : MAVEN_USERNAME
5765 server-password : MAVEN_PASSWORD
5866 - name : Publish to the Maven Central
59- run : mvn --batch-mode deploy -Prelease,mavencentral-release
67+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy -Prelease,mavencentral-release
6068 env :
6169 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
6270 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
You can’t perform that action at this time.
0 commit comments