From 9992eb7085d9c9178b7d1a2b90f12ac11ec18926 Mon Sep 17 00:00:00 2001 From: Aldrin Jenson Date: Wed, 20 Sep 2023 16:54:50 +0530 Subject: [PATCH] add checksum for all binaries created on release --- .github/workflows/release.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58827033a..4bae215fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,13 +2,6 @@ name: Release builds for Mac(64bit, Arm), Windows and Linux(64 bit, Arm) on: push: - tags: - - v[0-9]+.[0-9]+.[0-9]+* - paths-ignore: - - "docs/**" - - "helm/**" - - "assets/**" - - "**.md" jobs: build-linux: @@ -135,3 +128,28 @@ jobs: files: Parseable_${{ matrix.target }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + create-checksum: + runs-on: ubuntu-latest + needs: [build-linux, build-windows, build-mac] + steps: + - uses: actions/checkout@v3 + + - name: Download artifacts created + uses: actions/download-artifact@v3 + + - name: Display structure of downloaded files + run: ls -R + + - name: Run shasum command + run: | + shasum Parseable* > checksum.txt; cat checksum.txt + + # - name: Publish Check Sum to Release Page + # uses: softprops/action-gh-release@v0.1.15 + # if: ${{ startsWith(github.ref, 'refs/tags/') }} + # with: + # draft: false + # files: checksum.txt + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}