Skip to content

Commit

Permalink
ci: support sonatype user token for publishing (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: xiaoweii <[email protected]>
  • Loading branch information
zhu-xiaowei and xiaoweii authored Apr 8, 2024
1 parent 5d6c4a9 commit cd37cc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit cd37cc4

Please sign in to comment.