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