Skip to content

Commit

Permalink
publish gradle scan always when on CI and accept terms if on CI in th…
Browse files Browse the repository at this point in the history
…e original repository
  • Loading branch information
whyoleg committed Nov 12, 2023
1 parent df91579 commit e3c3724
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
with:
arguments: |
publishToMavenLocal
--scan
-Pversion=${{ github.ref_name }}
- name: Publish release to Maven Central (version ${{ github.ref_name }})
Expand All @@ -38,5 +37,4 @@ jobs:
with:
arguments: |
publishAllPublicationsToSonatypeRepository
--scan
-Pversion=${{ github.ref_name }}
2 changes: 0 additions & 2 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
with:
arguments: |
publishToMavenLocal
--scan
-PversionSuffix=${{ steps.set-version.outputs.version-suffix }}
-PgithubUsername=${{ github.actor }}
-PgithubPassword=${{ github.token }}
Expand All @@ -40,7 +39,6 @@ jobs:
with:
arguments: |
publishAllPublicationsToGithubRepository
--scan
-PversionSuffix=${{ steps.set-version.outputs.version-suffix }}
-PgithubUsername=${{ github.actor }}
-PgithubPassword=${{ github.token }}
4 changes: 0 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
jvm11Test
jvm17Test
jvm20Test
--scan
--continue
- if: always()
uses: actions/upload-artifact@v3
Expand All @@ -39,7 +38,6 @@ jobs:
arguments: |
jsNodeTest
jsBrowserTest
--scan
--continue
- if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -71,7 +69,6 @@ jobs:
arguments: |
${{ matrix.target }}Test
${{ matrix.target }}ReleaseTest
--scan
--continue
- if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -114,6 +111,5 @@ jobs:
arguments: |
build
publishToMavenLocal
--scan
--continue
-Pskip.test
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ plugins {

gradleEnterprise {
buildScan {
publishAlwaysIf(System.getenv("CI").toBoolean())
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (System.getenv("GITHUB_REPOSITORY") == "rsocket/rsocket-kotlin") {
termsOfServiceAgree = "yes"
}
}
}

Expand Down

0 comments on commit e3c3724

Please sign in to comment.