Skip to content

Commit 39d01e3

Browse files
update variables for publishing workflow
1 parent 352b63a commit 39d01e3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
distribution: temurin
4040
java-version: 11
4141
server-id: central
42-
server-username: ${{ secrets.OSSRH_USER_TOKEN }}
43-
server-password: ${{ secrets.OSSRH_PWD_TOKEN }}
42+
server-username: MAVEN_USERNAME
43+
server-password: MAVEN_PASSWORD
4444
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
45-
gpg-passphrase: ${{ secrets.GPG_PWD }}
45+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4646

4747
- name: Package
4848
run: |
@@ -52,6 +52,10 @@ jobs:
5252
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
5353
run: |
5454
mvn --no-transfer-progress --batch-mode deploy
55+
env:
56+
MAVEN_USERNAME: ${{ secrets.OSSRH_USER_TOKEN }}
57+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PWD_TOKEN }}
58+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PWD }}
5559

5660
- name: Cache Jars
5761
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)