Skip to content

Commit 682dfc7

Browse files
Fix release pipeline
1 parent 8d90d4f commit 682dfc7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ jobs:
2727
git commit --signoff --allow-empty -a -m "🏁 Releasing version $RELEASE_VERSION"
2828
git push origin HEAD:master
2929
30+
# GitHub
31+
- uses: actions/setup-java@v3
32+
with:
33+
distribution: "temurin"
34+
java-version: 11
35+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
36+
- name: GitHub Release
37+
run: mvn --batch-mode clean source:jar javadoc:jar deploy -P github,release -DskipTests
38+
env:
39+
GITHUB_TOKEN: ${{ github.token }}
40+
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
41+
3042
# OSSRH
3143
- uses: actions/setup-java@v3
3244
with:
@@ -44,18 +56,6 @@ jobs:
4456
MAVEN_PASSWORD: ${{ secrets.nexus_password }}
4557
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
4658

47-
# GitHub
48-
- uses: actions/setup-java@v3
49-
with:
50-
distribution: "temurin"
51-
java-version: 11
52-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
53-
- name: GitHub Release
54-
run: mvn --batch-mode clean source:jar javadoc:jar deploy -P github,release -DskipTests
55-
env:
56-
GITHUB_TOKEN: ${{ github.token }}
57-
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
58-
5959
- name: JReleaser
6060
uses: jreleaser/release-action@v2
6161
env:

0 commit comments

Comments
 (0)