Skip to content

Commit 85232f6

Browse files
committed
test new release workflow
1 parent 9117a4f commit 85232f6

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@ jobs:
2424
server-id: ossrh
2525
server-username: MAVEN_USER
2626
server-password: MAVEN_PASS
27-
- name: Prepare signing certificate
28-
env:
29-
PUB_CERT: ${{ secrets.PUB_CERT }}
30-
SIGNING_CERT: ${{ secrets.SIGNING_CERT }}
31-
run: |
32-
mkdir $RUNNER_TEMP/.gnupg
33-
echo -n $PUB_CERT | base64 --decode > $RUNNER_TEMP/.gnupg/pubring.gpg
34-
echo -n $SIGNING_CERT | base64 --decode > $RUNNER_TEMP/.gnupg/secring.gpg
27+
gpg-private-key: ${{ secrets.SIGNING_CERT }}
28+
gpg-passphrase: SIGNING_PASS
3529
- name: Release with Maven
3630
env:
3731
RELEASE_VERSION: ${{ github.event.milestone.title }}
@@ -41,10 +35,4 @@ jobs:
4135
SIGNING_PASS: ${{ secrets.SIGNING_PASS }}
4236
run: |
4337
mvn -B release:prepare release:perform \
44-
-DreleaseVersion=$RELEASE_VERSION \
45-
-Darguments="-Dgpg.defaultKeyring=false \
46-
-Dgpg.keyname=$SIGNING_KEY_ID \
47-
-Dgpg.passphrase=$SIGNING_PASS \
48-
-Dgpg.homedir=$RUNNER_TEMP/.gnupg"
49-
- name: Clean up signing certificate
50-
run: rm -rf $RUNNER_TEMP/.gnupg
38+
-DreleaseVersion=$RELEASE_VERSION

0 commit comments

Comments
 (0)