Skip to content

Commit 79762d5

Browse files
authored
update
1 parent c2cbbb5 commit 79762d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/pipeline.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT
4949
echo "build_version=${BUILD_VERSION}" >> $GITHUB_OUTPUT
5050
build:
51-
name: Build 🔨
51+
name: Build and publish to Maven Central 🔨
5252
runs-on: ubuntu-latest
5353
outputs:
5454
pom_version: ${{ needs.bump.outputs.pom_version }}
@@ -73,15 +73,15 @@ jobs:
7373
server-id: maven
7474
server-username: ${{ secrets.SONATYPE_USERNAME }}
7575
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
7882
- name: Update pom.xml version 💾
7983
run: |
8084
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
8585
- name: Build and verify with Maven 🔨
8686
run: mvn --batch-mode --update-snapshots verify
8787
- name: Publish to Maven Central

0 commit comments

Comments
 (0)