Skip to content

Commit 90c22ae

Browse files
Release
1 parent 54cb7aa commit 90c22ae

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
- uses: actions/checkout@v3
7979
with:
8080
ref: ${{ steps.head.outputs.content }}
81+
fetch-depth: 0
8182

8283
- name: JReleaser
8384
uses: jreleaser/release-action@v2
@@ -101,22 +102,28 @@ jobs:
101102
server-id: ossrh
102103
server-username: MAVEN_USERNAME
103104
server-password: MAVEN_PASSWORD
104-
- name: OSSRH Snapshot
105+
gpg-private-key: ${{ secrets.gpg_private_key }}
106+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
107+
- name: OSSRH Release
105108
run: mvn --batch-mode source:jar javadoc:jar deploy -Possrh -DskipTests
106109
env:
107110
MAVEN_USERNAME: ${{ secrets.nexus_username }}
108111
MAVEN_PASSWORD: ${{ secrets.nexus_password }}
112+
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
109113

110114
# GitHub
111115
- uses: actions/setup-java@v3
112116
with:
113117
distribution: "temurin"
114118
java-version: 11
115119
cache: maven
116-
- name: GitHub Snapshot
120+
gpg-private-key: ${{ secrets.gpg_private_key }}
121+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
122+
- name: GitHub Release
117123
run: mvn --batch-mode source:jar javadoc:jar deploy -Pgithub -DskipTests
118124
env:
119125
GITHUB_TOKEN: ${{ github.token }}
126+
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
120127

121128
- name: Set next version
122129
env:

0 commit comments

Comments
 (0)