File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 48
48
echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT
49
49
echo "build_version=${BUILD_VERSION}" >> $GITHUB_OUTPUT
50
50
build :
51
- name : Build 🔨
51
+ name : Build and publish to Maven Central 🔨
52
52
runs-on : ubuntu-latest
53
53
outputs :
54
54
pom_version : ${{ needs.bump.outputs.pom_version }}
@@ -73,15 +73,15 @@ jobs:
73
73
server-id : maven
74
74
server-username : ${{ secrets.SONATYPE_USERNAME }}
75
75
server-password : ${{ secrets.SONATYPE_PASSWORD }}
76
- gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
77
- gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
76
+ - name : Import GPG key using gpg2 🔐
77
+ run : |
78
+ echo "${{ secrets.GPG_SECRET_KEY }}" | base64 --decode | gpg2 --batch --yes --import
79
+ echo "${{ secrets.GPG_OWNERTRUST }}" | gpg2 --import-ownertrust
80
+ export GPG_TTY=$(tty)
81
+ export GPG_EXECUTABLE=gpg2
78
82
- name : Update pom.xml version 💾
79
83
run : |
80
84
mvn versions:set -DnewVersion=${{ needs.bump.outputs.major_version }}.${{ needs.bump.outputs.minor_version }}.${{ needs.bump.outputs.build_version }} -DgenerateBackupPoms=false
81
- - name : Import GPG key and set trust
82
- run : |
83
- echo "${{ secrets.GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import
84
- echo "${{ secrets.GPG_OWNERTRUST }}" | gpg --import-ownertrust
85
85
- name : Build and verify with Maven 🔨
86
86
run : mvn --batch-mode --update-snapshots verify
87
87
- name : Publish to Maven Central
You can’t perform that action at this time.
0 commit comments