Skip to content

Commit

Permalink
Set up Build Scan publication
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 6, 2024
1 parent dce2415 commit fb86022
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- '*'

env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
Linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:

publish_artifacts:
name: Publish Snapshot Artifacts
needs: linux
needs: Linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ota4j-team/opentest4j' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main')
steps:
Expand All @@ -60,7 +63,7 @@ jobs:

update_documentation:
name: Update documentation
needs: linux
needs: Linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ota4j-team/opentest4j' && github.ref == 'refs/heads/main'
steps:
Expand Down
25 changes: 25 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
plugins {
id("com.gradle.develocity") version "3.18.1"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.0.2"
}

rootProject.name = 'opentest4j'

develocity {
buildScan {
def isCiServer = System.getenv("CI") != null

server = "https://ge.junit.org"
uploadInBackground = !isCiServer

obfuscation {
if (isCiServer) {
username { "github" }
} else {
hostname { null }
ipAddresses { [] }
}
}

publishing.onlyIf { it.authenticated }
}
}

0 comments on commit fb86022

Please sign in to comment.