Skip to content

Commit 2d85b87

Browse files
Fixup publishing
1 parent 4d1b7aa commit 2d85b87

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/PublishMaven.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish to Maven
22
on:
33
release:
44
types: [created]
5+
workflow_dispatch:
56
jobs:
67
publish:
78
runs-on: ubuntu-latest
@@ -13,28 +14,24 @@ jobs:
1314
with:
1415
node-version: 14
1516

16-
- name: Set up JDK 8
17-
uses: actions/setup-java@v2
18-
with:
19-
distribution: adopt
20-
java-version: 8
21-
cache: "maven"
22-
2317
- name: Set up Maven Central Repository
24-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v3
2519
with:
2620
java-version: '8'
2721
distribution: 'adopt'
22+
cache: "maven"
2823
server-id: ossrh
2924
server-username: MAVEN_USERNAME
30-
server-password: MAVEN_PASSWORD
25+
server-password: MAVEN_TOKEN
26+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
27+
gpg-passphrase: GPG_PASSPHRASE
3128

3229
- name: Publish package
3330
run: |
34-
npm run init
31+
npm run init-jvm
3532
cd jvm
3633
mvn --batch-mode deploy
37-
3834
env:
3935
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
40-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
36+
MAVEN_TOKEN: ${{ secrets.OSSRH_TOKEN }}
37+
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

0 commit comments

Comments
 (0)