From eb61b29906c4940e1834b72472de6a48fbd64ba8 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 28 Aug 2024 18:32:57 +1000 Subject: [PATCH] fixing pipeline of maven deploy --- .github/workflows/build-and-publish-release.yml | 4 +++- .github/workflows/build-and-publish-snapshot.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index 38366c8..9ddbed6 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -35,7 +35,9 @@ jobs: SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }} RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }} run: | - mvn -X -B deploy -P publish \ + mvn -X -B deploy \ + -Daether.checksums.algorithms="MD5,SHA-1,SHA-256,SHA-512" \ + -P publish \ --settings=${{ github.workspace }}/.mvn/settings.xml - name: Finish release run: mvn gitflow:release-finish -B -DpushRemote=true -DallowSnapshots=true diff --git a/.github/workflows/build-and-publish-snapshot.yml b/.github/workflows/build-and-publish-snapshot.yml index e21841d..afb59fe 100644 --- a/.github/workflows/build-and-publish-snapshot.yml +++ b/.github/workflows/build-and-publish-snapshot.yml @@ -31,7 +31,9 @@ jobs: SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }} RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }} run: | - mvn -X -B deploy -P publish \ + mvn -X -B deploy \ + -Daether.checksums.algorithms="MD5,SHA-1,SHA-256,SHA-512" \ + -P publish \ --settings=${{ github.workspace }}/.mvn/settings.xml - uses: actions/upload-artifact@v3.1.3 if: always()