Skip to content

Commit

Permalink
Don't use an env at all in snapshot uploading (#455)
Browse files Browse the repository at this point in the history
Newer versions of the publish plugin will error on the presence of the old env arg even if the new gradle property is present
  • Loading branch information
ZacSweers authored Aug 9, 2021
1 parent 2e7cee9 commit a4539c5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,5 @@ jobs:
- name: Final checks
run: ./gradlew check --stacktrace
- name: Upload snapshot (main only)
run: ./gradlew publishAllPublicationsToMavenCentralRepository -PmavenCentralUsername="$SONATYPE_NEXUS_USERNAME" -PmavenCentralPassword="$SONATYPE_NEXUS_PASSWORD"
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SonatypeUsername }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SonatypePassword }}
run: ./gradlew publishAllPublicationsToMavenCentralRepository -PmavenCentralUsername="${{ secrets.SonatypeUsername }}" -PmavenCentralPassword="${{ secrets.SonatypePassword }}"
if: success() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && matrix.java_version == '11'

0 comments on commit a4539c5

Please sign in to comment.