File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3
3
4
4
name : Maven Package
5
- on : push
5
+ on :
6
+ release :
7
+ types : [published]
6
8
7
9
jobs :
8
10
build :
@@ -18,10 +20,10 @@ jobs:
18
20
distribution : ' temurin' # See 'Supported distributions' for available options
19
21
java-version : ' 8'
20
22
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 }}
23
25
gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
24
- gpg-passphrase : SIGN_KEY_PASS
26
+ gpg-passphrase : ${{ secrets. SIGN_KEY_PASS }}
25
27
26
28
- name : Build with Maven
27
29
id : build
You can’t perform that action at this time.
0 commit comments