From 1b79517fd75245bebd180a6afcc7073e12e6127d Mon Sep 17 00:00:00 2001 From: David Kornel Date: Thu, 23 Jan 2025 16:22:03 +0100 Subject: [PATCH 1/3] Publish snapshots into central sonatype instead of github Signed-off-by: David Kornel --- .github/workflows/publish-release.yaml | 2 ++ pom.xml | 22 ---------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index ef54283..89cf3b3 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -2,6 +2,8 @@ name: Publish-release on: push: + branches: + - main tags: - '*' diff --git a/pom.xml b/pom.xml index cdad28a..29e1f57 100644 --- a/pom.xml +++ b/pom.xml @@ -31,14 +31,6 @@ https://github.com/skodjob/test-frame/issues - - - github - GitHub Apache Maven Packages - https://maven.pkg.github.com/skodjob/test-frame - - - im-konge @@ -89,7 +81,6 @@ 3.13.0 3.3.1 - 3.1.3 3.2.7 0.7.0 3.11.2 @@ -361,19 +352,6 @@ - - maven-deploy-plugin - ${maven.deploy.plugin.version} - - - deploy - deploy - - deploy - - - - org.apache.maven.plugins maven-failsafe-plugin From 7c9b22977d11a39a24ac0347a614d82eac62d81a Mon Sep 17 00:00:00 2001 From: David Kornel Date: Thu, 23 Jan 2025 16:24:10 +0100 Subject: [PATCH 2/3] Publish snapshots into central sonatype instead of github Signed-off-by: David Kornel --- .github/workflows/publish-snapshot.yaml | 45 ------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/publish-snapshot.yaml diff --git a/.github/workflows/publish-snapshot.yaml b/.github/workflows/publish-snapshot.yaml deleted file mode 100644 index b5bcdd8..0000000 --- a/.github/workflows/publish-snapshot.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: Publish-snapshot - -on: - push: - branches: [ main ] - -jobs: - publish-snapshot: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - server-id: github - settings-path: ${{ github.workspace }} - - - name: Setup Maven settings.xml - uses: whelk-io/maven-settings-xml-action@v11 - with: - servers: - '[ - { - "id": "github", - "username": "${env.GITHUB_USERNAME}", - "password": "${env.GITHUB_TOKEN}" - } - ]' - - - name: Cache m2 repo - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - - name: Publish to GitHub Packages Apache Maven - run: ./mvnw deploy - env: - GITHUB_USERNAME: x-access-token - GITHUB_TOKEN: ${{ secrets.TOKEN }} - BUILD_ENV: 'github-actions' From 4db68b1d64be6b9a7bb2696ac58de35dbf8fad5c Mon Sep 17 00:00:00 2001 From: David Kornel Date: Thu, 23 Jan 2025 16:28:29 +0100 Subject: [PATCH 3/3] fixes Signed-off-by: David Kornel --- .github/workflows/{publish-release.yaml => publish.yaml} | 2 +- README.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) rename .github/workflows/{publish-release.yaml => publish.yaml} (98%) diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish.yaml similarity index 98% rename from .github/workflows/publish-release.yaml rename to .github/workflows/publish.yaml index 89cf3b3..b9d4e7c 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish.yaml @@ -8,7 +8,7 @@ on: - '*' jobs: - publish-release: + publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 4b74b15..6e06296 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ Library for easy testing of Kubernetes deployments and operators using Fabric8 API. [![Build](https://github.com/skodjob/test-frame/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/skodjob/test-frame/actions/workflows/build.yaml) -[![Publish-snapshot](https://github.com/skodjob/test-frame/actions/workflows/publish-snapshot.yaml/badge.svg?branch=main)](https://github.com/skodjob/test-frame/actions/workflows/publish-snapshot.yaml) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![GitHub Release](https://img.shields.io/github/v/release/skodjob/test-frame)](https://github.com/skodjob/test-frame/releases) [![Maven Central Version](https://img.shields.io/maven-central/v/io.skodjob/test-frame)](https://central.sonatype.com/search?q=io.skodjob.test-frame)