From bc5a7a337a1fac7b904288db66af08e57a8208a4 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Mon, 4 Mar 2024 15:26:36 +0800 Subject: [PATCH] Disable sonatype push for snapshot builds We don't need to push any artifacts to sonatype in service app. --- .github/workflows/merge-build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/merge-build.yml b/.github/workflows/merge-build.yml index 45307e5..0f80b06 100644 --- a/.github/workflows/merge-build.yml +++ b/.github/workflows/merge-build.yml @@ -23,7 +23,7 @@ on: [push] jobs: publish-snapshot: - name: publish to oss sonatype & push image + name: Build & push image runs-on: ubuntu-latest @@ -46,18 +46,16 @@ jobs: - name: maven-settings-xml-action uses: whelk-io/maven-settings-xml-action@v14 - if: ${{ github.event.repository.fork == false }} with: repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]' - servers: '[{ "id": "sonatype", "username": "${{ secrets.SONATYPE_BOT_USERNAME}}", "password": "${{ secrets.SONATYPE_BOT_TOKEN}}" }]' - name: "Maven Verify" if: ${{ github.event.repository.fork == true }} run: mvn -B -e verify - - name: "Maven Build & Deploy Snapshot to Sonatype OSSRH" + - name: "Maven Build" if: ${{ github.event.repository.fork == false }} - run: mvn -B -e deploy -DaltDeploymentRepository=sonatype::default::https://oss.sonatype.org/content/repositories/snapshots/ + run: mvn -B -e clean install - name: Checkout tools repo uses: actions/checkout@v4