From 2245a41ea0aa55fe2ce75a7920951a658cda3e18 Mon Sep 17 00:00:00 2001 From: Peter Thomas Date: Thu, 6 Jun 2024 18:07:11 +0530 Subject: [PATCH] [no ci] add switch for maven in release gh action --- .github/workflows/maven-release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index c616a7a1c..84f40f354 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -4,14 +4,23 @@ on: workflow_dispatch: inputs: version: + description: maven and docker release version required: true default: 'X.X.X.RCX' docker: + description: push to docker required: true type: choice options: - 'enabled' - 'disabled' + maven: + description: push to maven central + required: true + type: choice + options: + - 'enabled' + - 'disabled' jobs: build: @@ -50,6 +59,7 @@ jobs: docker buildx build --push --platform linux/amd64 --cache-from=type=local,src=./target/docker -t karate-chrome -t karatelabs/karate-chrome:latest -t karatelabs/karate-chrome:${{ github.event.inputs.version }} karate-docker/karate-chrome docker buildx build --push --platform linux/amd64,linux/arm64 --cache-from=type=local,src=./target/docker -t karate-chromium -t karatelabs/karate-chromium:latest -t karatelabs/karate-chromium:${{ github.event.inputs.version }} karate-docker/karate-chromium - name: maven deploy to central + if: ( github.event.inputs.maven == 'enabled' ) env: MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USER }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}