From bdf24ce3314bac6c0b2bb0612aa664e65695637a Mon Sep 17 00:00:00 2001 From: Yan Pujante Date: Mon, 9 Dec 2024 10:43:43 -0800 Subject: [PATCH] added workflow to compute checksum --- .github/workflows/compute-checksum.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/compute-checksum.yml diff --git a/.github/workflows/compute-checksum.yml b/.github/workflows/compute-checksum.yml new file mode 100644 index 0000000..3212111 --- /dev/null +++ b/.github/workflows/compute-checksum.yml @@ -0,0 +1,19 @@ +name: Compute SHA-256 on Release + +on: + release: + types: [ published ] + +jobs: + compute-checksum: + runs-on: ubuntu-latest + + steps: + - name: Compute SHA-256 checksum + run: | + curl -sfL https://github.com/pongasoft/jamba/archive/refs/tags/${{ github.event.release.tag_name }}.zip | sha256sum > ${{ github.event.release.tag_name }}.zip_sha256.txt + + - name: Upload checksum to release + uses: softprops/action-gh-release@v2 + with: + files: ${{ github.event.release.tag_name }}.zip_sha256.txt