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' diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish.yaml similarity index 96% rename from .github/workflows/publish-release.yaml rename to .github/workflows/publish.yaml index ef54283..b9d4e7c 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish.yaml @@ -2,11 +2,13 @@ name: Publish-release on: push: + branches: + - main tags: - '*' 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) 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