Skip to content

Commit caeaf9d

Browse files
committed
ci: expose central token env vars to publish step
1 parent 054c055 commit caeaf9d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
publish:
1313
name: Publish to Maven Central
1414
runs-on: ubuntu-latest
15+
env:
16+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
17+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
1518
steps:
1619
- name: Checkout
1720
uses: actions/checkout@v4
@@ -25,9 +28,6 @@ jobs:
2528
server-id: central
2629
server-username: CENTRAL_TOKEN_USERNAME
2730
server-password: CENTRAL_TOKEN_PASSWORD
28-
env:
29-
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
30-
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3131

3232
- name: Check release gate
3333
id: gate

0 commit comments

Comments
 (0)