Skip to content

Commit a4539c5

Browse files
authored
Don't use an env at all in snapshot uploading (#455)
Newer versions of the publish plugin will error on the presence of the old env arg even if the new gradle property is present
1 parent 2e7cee9 commit a4539c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,5 @@ jobs:
6161
- name: Final checks
6262
run: ./gradlew check --stacktrace
6363
- name: Upload snapshot (main only)
64-
run: ./gradlew publishAllPublicationsToMavenCentralRepository -PmavenCentralUsername="$SONATYPE_NEXUS_USERNAME" -PmavenCentralPassword="$SONATYPE_NEXUS_PASSWORD"
65-
env:
66-
SONATYPE_NEXUS_USERNAME: ${{ secrets.SonatypeUsername }}
67-
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SonatypePassword }}
64+
run: ./gradlew publishAllPublicationsToMavenCentralRepository -PmavenCentralUsername="${{ secrets.SonatypeUsername }}" -PmavenCentralPassword="${{ secrets.SonatypePassword }}"
6865
if: success() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && matrix.java_version == '11'

0 commit comments

Comments
 (0)