Skip to content

Commit e4eb9ee

Browse files
authored
Update CI (#716)
Signed-off-by: Matt Ramotar <matt.ramotar@uber.com>
1 parent e963bf5 commit e4eb9ee

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,9 @@ jobs:
7070
run: chmod +x gradlew
7171

7272
- name: Upload Artifacts to Maven Central
73-
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
73+
run: ./gradlew publishToMavenCentral --no-daemon --no-parallel
7474
env:
75-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
76-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
75+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
76+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
7777
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
78-
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
79-
80-
- name: Retrieve Version
81-
run: |
82-
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
83-
84-
- name: Publish Release
85-
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
86-
if: "!endsWith(env.VERSION_NAME, '-SNAPSHOT')"
87-
env:
88-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
89-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
78+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

0 commit comments

Comments
 (0)