From b26ed38946a78c0d66592c5a07c991e731207378 Mon Sep 17 00:00:00 2001 From: Marcin Mielnicki Date: Sun, 15 Oct 2023 19:11:04 +0200 Subject: [PATCH] Do not publish to GH packages --- .github/workflows/publish-snapshot.yml | 7 ------- tests-execution-chart-commons/build.gradle.kts | 10 ---------- 2 files changed, 17 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 92ef28a..a113206 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -28,13 +28,6 @@ jobs: run: | VERSION=$(./gradlew currentVersion -q | grep "Project version") echo "currentVersionInfo=$VERSION" >> "$GITHUB_OUTPUT" - - name: Publish package to GitHub Packages - if: ${{ contains(steps.current-version.outputs.currentVersionInfo, 'SNAPSHOT') }} - uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 - with: - arguments: :tests-execution-chart-commons:publishMavenJavaPublicationToGitHubPackagesRepository -i - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish package to Sonatype if: ${{ contains(steps.current-version.outputs.currentVersion, 'SNAPSHOT') }} uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 diff --git a/tests-execution-chart-commons/build.gradle.kts b/tests-execution-chart-commons/build.gradle.kts index cc312cf..da7aa01 100644 --- a/tests-execution-chart-commons/build.gradle.kts +++ b/tests-execution-chart-commons/build.gradle.kts @@ -53,16 +53,6 @@ publishing { } } } - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/platan/tests-execution-chart") - credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") - } - } - } } tasks.test {