You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/04/29 14:54:31 UTC

[maven-mvnd] branch master updated: Move back the sha256 computation on the client side

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git


The following commit(s) were added to refs/heads/master by this push:
     new 3877b9d  Move back the sha256 computation on the client side
3877b9d is described below

commit 3877b9dce857081de755f296684d1b2902c05636
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Apr 29 16:49:14 2022 +0200

    Move back the sha256 computation on the client side
---
 .github/workflows/release.yaml | 65 ------------------------------------------
 build/publish.sh               |  2 +-
 2 files changed, 1 insertion(+), 66 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index d95c32b..546d889 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -61,19 +61,12 @@ jobs:
       - name: 'Build native distribution'
         run: ./mvnw clean verify -Pnative -Dmrm=false -B -ntp -e -DskipTests
 
-      - name: Compute sha256 checksums
-        run: |
-          for file in dist/target/mvnd-*.zip ; do
-            sha256sum ${file} | cut -d ' ' -f 1 > ${file}.sha256
-          done
-
       - name: 'Upload artifact'
         uses: actions/upload-artifact@v2
         with:
           name: artifacts
           path: |
             dist/target/mvnd-*.zip
-            dist/target/mvnd-*.sha256
 
   source:
     name: 'Build source distributions'
@@ -101,12 +94,6 @@ jobs:
       - name: 'Build source distribution'
         run: ./mvnw clean verify -Psource-distribution -pl :mvnd -Dmrm=false -B -ntp -e
 
-      - name: Compute sha256 checksums
-        run: |
-          for file in target/mvnd-*.zip target/mvnd-*.tar.gz ; do
-            sha256sum ${file} | cut -d ' ' -f 1 > ${file}.sha256
-          done
-
       - name: 'Upload artifact'
         uses: actions/upload-artifact@v2
         with:
@@ -114,8 +101,6 @@ jobs:
           path: |
             target/mvnd-*.zip
             target/mvnd-*.tar.gz
-            target/mvnd-*.sha256
-
 
   release:
     runs-on: ubuntu-18.04
@@ -171,16 +156,6 @@ jobs:
           asset_name: mvnd-${{ env.VERSION }}-src.zip
           asset_content_type: application/zip
 
-      - name: Deploy mvnd-src.zip.sha256
-        uses: actions/upload-release-asset@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: artifacts/mvnd-${{ env.VERSION }}-src.zip.sha256
-          asset_name: mvnd-${{ env.VERSION }}-src.zip.sha256
-          asset_content_type: text/plain
-
       - name: Deploy mvnd-src.tar.gz
         uses: actions/upload-release-asset@v1
         env:
@@ -191,16 +166,6 @@ jobs:
           asset_name: mvnd-${{ env.VERSION }}-src.tar.gz
           asset_content_type: application/tar.gz
 
-      - name: Deploy mvnd-src.tar.gz.sha256
-        uses: actions/upload-release-asset@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: artifacts/mvnd-${{ env.VERSION }}-src.tar.gz.sha256
-          asset_name: mvnd-${{ env.VERSION }}-src.tar.gz.sha256
-          asset_content_type: text/plain
-
       - name: Deploy mvnd-linux-amd64.zip
         uses: actions/upload-release-asset@v1
         env:
@@ -211,16 +176,6 @@ jobs:
           asset_name: mvnd-${{ env.VERSION }}-linux-amd64.zip
           asset_content_type: application/zip
 
-      - name: Deploy mvnd-linux-amd64.zip.sha256
-        uses: actions/upload-release-asset@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: artifacts/mvnd-${{ env.VERSION }}-linux-amd64.zip.sha256
-          asset_name: mvnd-${{ env.VERSION }}-linux-amd64.zip.sha256
-          asset_content_type: text/plain
-
       - name: Deploy mvnd-darwin-amd64.zip
         uses: actions/upload-release-asset@v1
         env:
@@ -231,16 +186,6 @@ jobs:
           asset_name: mvnd-${{ env.VERSION }}-darwin-amd64.zip
           asset_content_type: application/zip
 
-      - name: Deploy mvnd-darwin-amd64.zip.sha256
-        uses: actions/upload-release-asset@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: artifacts/mvnd-${{ env.VERSION }}-darwin-amd64.zip.sha256
-          asset_name: mvnd-${{ env.VERSION }}-darwin-amd64.zip.sha256
-          asset_content_type: text/plain
-
       - name: Deploy mvnd-windows-amd64.zip
         uses: actions/upload-release-asset@v1
         env:
@@ -250,13 +195,3 @@ jobs:
           asset_path: artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip
           asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip
           asset_content_type: application/zip
-
-      - name: Deploy mvnd-windows-amd64.zip.sha256
-        uses: actions/upload-release-asset@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        with:
-          upload_url: ${{ steps.create_release.outputs.upload_url }}
-          asset_path: artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip.sha256
-          asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip.sha256
-          asset_content_type: text/plain
diff --git a/build/publish.sh b/build/publish.sh
index 7e68606..92ae19a 100755
--- a/build/publish.sh
+++ b/build/publish.sh
@@ -51,9 +51,9 @@ cd ${VERSION}
 for dist in darwin-amd64.zip linux-amd64.zip windows-amd64.zip src.zip src.tar.gz
 do
   FILE=mvnd-${VERSION}-${dist}
-  echo "$(cat ${FILE}.sha256) ${FILE}" | shasum -c
   md5 -q ${FILE} > ${FILE}.md5
   shasum -a 1 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha1
+  shasum -a 256 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha256
   shasum -a 512 -b ${FILE} | cut -d ' ' -f 1 > ${FILE}.sha512
   gpg --detach-sign --armor ${FILE}
 done