Skip to content

Commit 25924ea

Browse files
committed
Fix publish action
1 parent 96b72ef commit 25924ea

2 files changed

Lines changed: 11 additions & 57 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Publish JRE17 to the Maven Central
1+
name: Publish JRE8 to the Maven Central
2+
23
on:
34
release:
45
types: [created]
@@ -11,20 +12,22 @@ jobs:
1112
environment: maven-central
1213
steps:
1314
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
15+
- name: Set up JDK 8
1516
uses: actions/setup-java@v4
1617
with:
17-
java-version: '17'
18+
java-version: 8
1819
distribution: 'temurin'
1920
cache: 'maven'
20-
server-id: ossrh
21-
server-username: OSSRH_USERNAME
22-
server-password: OSSRH_TOKEN
21+
server-id: central
22+
server-username: CENTRAL_TOKEN_ID
23+
server-password: CENTRAL_TOKEN_SECRET
2324
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2425
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2526
- name: Publish package
2627
run: mvn -B -Pmaven-central deploy
2728
env:
28-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
29-
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
29+
CENTRAL_TOKEN_ID: ${{ secrets.CENTRAL_TOKEN_ID }}
30+
CENTRAL_TOKEN_SECRET: ${{ secrets.CENTRAL_TOKEN_SECRET }}
3031
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
32+
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
33+

0 commit comments

Comments
 (0)