Skip to content

Commit 2a46387

Browse files
committed
chore: fixed release order
1 parent 27f4566 commit 2a46387

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,17 @@ jobs:
7171
-Pversion=${{ needs.get-next-version.outputs.new_tag_version }} \
7272
-PtimeStamp=${{ steps.time.outputs.time }}
7373
74-
- name: Publish to Maven Central with JReleaser
75-
run: |
76-
./gradlew -Pversion=${{ needs.get-next-version.outputs.new_tag_version }} publish
77-
env:
78-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
79-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
80-
8174
- name: Setup Node.js
8275
uses: actions/setup-node@v3
8376
with:
8477
node-version: "lts/*"
8578

86-
- name: Release
79+
- name: Publish to Maven Central with JReleaser
80+
run: |
81+
./gradlew -Pversion=${{ needs.get-next-version.outputs.new_tag_version }} publish
8782
env:
88-
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
89-
run: npx semantic-release
83+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
84+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
9085

9186
- name: Deploy to Maven Central with JReleaser
9287
run: |
@@ -107,3 +102,8 @@ jobs:
107102
path: |
108103
build/jreleaser/trace.log
109104
build/jreleaser/output.properties
105+
106+
- name: Release
107+
env:
108+
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
109+
run: npx semantic-release

0 commit comments

Comments
 (0)