Skip to content

Commit cd37cc4

Browse files
zhu-xiaoweixiaoweii
andauthored
ci: support sonatype user token for publishing (#77)
Co-authored-by: xiaoweii <[email protected]>
1 parent 5d6c4a9 commit cd37cc4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/code_coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
clickstream/build/reports/
3131
clickstream/build/test-results/
3232
- name: Upload Test Report
33-
uses: codecov/codecov-action@v3
33+
uses: codecov/codecov-action@v4
3434
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
3536
name: report
3637
files: clickstream/build/reports/jacoco/jacoco.xml

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
cache: gradle
1818
- name: Config properties
1919
run: |
20-
echo "nexusUsername=${{ vars.NEXUS_USERNAME }}" >> key.properties
21-
echo "nexusPassword=${{ secrets.NEXUS_PASSWORD }}" >> key.properties
20+
echo "ossrhUsername=${{ secrets.OSSRH_USERNAME }}" >> key.properties
21+
echo "ossrhPassword=${{ secrets.OSSRH_PASSWORD }}" >> key.properties
2222
echo "signing.keyId=${{ vars.SIGNING_KEY_ID }}" >> key.properties
2323
echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> key.properties
2424
echo "signing.inMemoryKey=${{ secrets.SIGNING_IN_MEMORY_KEY }}" >> key.properties

publishing.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ afterEvaluate { project ->
8181
maven {
8282
url = "https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/"
8383
credentials {
84-
username = keyProp.getProperty("nexusUsername")
85-
password = keyProp.getProperty("nexusPassword")
84+
username = keyProp.getProperty("ossrhUsername")
85+
password = keyProp.getProperty("ossrhPassword")
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)