Skip to content

Commit 87b51ef

Browse files
fix: maven-publish.yml
1 parent ef3313e commit 87b51ef

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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:
6-
release:
7-
types: [published]
5+
on: push
86

97
jobs:
108
build:
@@ -20,10 +18,10 @@ jobs:
2018
distribution: 'temurin' # See 'Supported distributions' for available options
2119
java-version: '8'
2220
server-id: 'ossrh'
23-
server-username: ${{ secrets.OSSRH_USERNAME }}
24-
server-password: ${{ secrets.OSSRH_TOKEN }}
21+
server-username: OSSRH_USERNAME
22+
server-password: OSSRH_PASSWORD
2523
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
26-
gpg-passphrase : ${{ secrets.SIGN_KEY_PASS }}
24+
gpg-passphrase : SIGN_KEY_PASS
2725

2826
- name: Build with Maven
2927
id: build

0 commit comments

Comments
 (0)