Skip to content

Commit 6994f7c

Browse files
committed
passing the username and password directly
1 parent 8b981d1 commit 6994f7c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
uses: ncipollo/semantic-version-action@v1
2929
- uses: gradle/actions/setup-gradle@v4
3030
- env:
31-
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
32-
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
3331
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
3432
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
3533
SIGNING_SECRET_KEY_PATH: ${{ steps.write_file.outputs.filePath }}
36-
run: ./gradlew gitPublishPush publishAndReleaseToMavenCentral "-Pversion=${{ steps.version.outputs.tag }}" -Prelease=true "-Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_TOKEN }}" --stacktrace
34+
run: ./gradlew gitPublishPush publishAndReleaseToMavenCentral "-Pversion=${{ steps.version.outputs.tag }}" -PmavenCentralUsername=${{ secrets.MAVEN_CENTRAL_USERNAME }} -PmavenCentralPassword=${{ secrets.MAVEN_CENTRAL_PASSWORD }} -Prelease=true "-Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_TOKEN }}" --stacktrace

0 commit comments

Comments
 (0)