Skip to content

Commit d224578

Browse files
committed
ci: use env vars for central auth
1 parent 67502f6 commit d224578

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
java-version: 25
2424
cache: maven
2525
server-id: central
26-
server-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
27-
server-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
26+
server-username: CENTRAL_TOKEN_USERNAME
27+
server-password: CENTRAL_TOKEN_PASSWORD
28+
env:
29+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
30+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
2831

2932
- name: Check release gate
3033
id: gate

0 commit comments

Comments
 (0)