Skip to content

Commit ef3313e

Browse files
authored
Revert maven-publish.yml
1 parent 844aba7 commit ef3313e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/maven-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
33

44
name: Maven Package
5-
on: push
5+
on:
6+
release:
7+
types: [published]
68

79
jobs:
810
build:
@@ -18,10 +20,10 @@ jobs:
1820
distribution: 'temurin' # See 'Supported distributions' for available options
1921
java-version: '8'
2022
server-id: 'ossrh'
21-
server-username: OSSRH_USERNAME
22-
server-password: OSSRH_PASSWORD
23+
server-username: ${{ secrets.OSSRH_USERNAME }}
24+
server-password: ${{ secrets.OSSRH_TOKEN }}
2325
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
24-
gpg-passphrase : SIGN_KEY_PASS
26+
gpg-passphrase : ${{ secrets.SIGN_KEY_PASS }}
2527

2628
- name: Build with Maven
2729
id: build

0 commit comments

Comments
 (0)