From a1ec8a4cb4362e427ac130956194b56063e2278b Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Fri, 2 Aug 2024 17:03:45 +0200 Subject: [PATCH] test: build as jobs --- .github/workflows/build.yml | 8 ++++---- pom.xml | 14 -------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6875ec1..195215f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} - name: Prepare Cache id: prepare-cache - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 with: path: | /home/runner/.m2 @@ -108,14 +108,14 @@ jobs: gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} - name: Restore Cache id: restore-cache - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 with: path: | /home/runner/.m2 /home/runner/work key: ${{ needs.build.outputs.cache_key }} - name: Publish to Maven Central - run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P nexus-staging + run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true deploy -P gpg-sign -P nexus-staging # deploy to GitHub Packages deploy-github-packages: @@ -136,7 +136,7 @@ jobs: gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} - name: Cache id: cache - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 with: path: | /home/runner/.m2 diff --git a/pom.xml b/pom.xml index a12bcc3..f3e563d 100644 --- a/pom.xml +++ b/pom.xml @@ -102,20 +102,6 @@ org.apache.maven.plugins maven-source-plugin - - - io.swagger.core.v3 - swagger-maven-plugin - - JSON - - ch.sbb.polarion.extension.generic.rest.controller - ch.sbb.polarion.extension.generic.rest.model - ch.sbb.polarion.extension.api.extender.rest.controller - ch.sbb.polarion.extension.api.extender.rest.model - - -