From e44a9880faeecf25d59192e88dd6157fcbe64b84 Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Mon, 8 Apr 2024 10:47:37 +0800 Subject: [PATCH 1/3] chore: support sonatype user token for publishing --- publishing.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publishing.gradle b/publishing.gradle index d800b42..0ac8dc3 100644 --- a/publishing.gradle +++ b/publishing.gradle @@ -81,8 +81,8 @@ afterEvaluate { project -> maven { url = "https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/" credentials { - username = keyProp.getProperty("nexusUsername") - password = keyProp.getProperty("nexusPassword") + username = keyProp.getProperty("ossrhUsername") + password = keyProp.getProperty("ossrhPassword") } } } From 7abad2466c90fbbcc7333e02d99d46c257a628e4 Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Mon, 8 Apr 2024 10:51:46 +0800 Subject: [PATCH 2/3] ci: update publish action for new user token --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8b42d0f..a4d30ed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,8 +17,8 @@ jobs: cache: gradle - name: Config properties run: | - echo "nexusUsername=${{ vars.NEXUS_USERNAME }}" >> key.properties - echo "nexusPassword=${{ secrets.NEXUS_PASSWORD }}" >> key.properties + echo "ossrhUsername=${{ secrets.OSSRH_USERNAME }}" >> key.properties + echo "ossrhPassword=${{ secrets.OSSRH_PASSWORD }}" >> key.properties echo "signing.keyId=${{ vars.SIGNING_KEY_ID }}" >> key.properties echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> key.properties echo "signing.inMemoryKey=${{ secrets.SIGNING_IN_MEMORY_KEY }}" >> key.properties From ce9355212ed9b0c7fe1f4c2238c9178720295fd4 Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Mon, 8 Apr 2024 17:26:33 +0800 Subject: [PATCH 3/3] ci: add token for codecov --- .github/workflows/code_coverage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 5154741..7647401 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -30,7 +30,8 @@ jobs: clickstream/build/reports/ clickstream/build/test-results/ - name: Upload Test Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} name: report files: clickstream/build/reports/jacoco/jacoco.xml \ No newline at end of file