Skip to content

Commit 9f3d369

Browse files
committed
Set OSSRH credentials for release workflow
1 parent 721f09f commit 9f3d369

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ jobs:
1616
with:
1717
java-version: 8
1818
distribution: temurin
19+
server-id: default
20+
server-username: MAVEN_USERNAME
21+
server-password: MAVEN_CENTRAL_TOKEN
1922
- name: Set version
2023
run: ./mvnw versions:set -DnewVersion="${{github.event.release.tag_name}}"
2124
# TODO check main's CI status
2225
- name: Deploy with Maven
2326
env:
2427
MAVEN_DEPLOYMENT_REPOSITORY: ${{ secrets.MAVEN_DEPLOYMENT_REPOSITORY }}
28+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
29+
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
2530
run: ./mvnw deploy -DaltReleaseDeploymentRepository="$MAVEN_DEPLOYMENT_REPOSITORY" -DskipTests

0 commit comments

Comments
 (0)