diff options
author | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2021-10-18 18:47:50 +0300 |
---|---|---|
committer | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2021-10-18 18:47:50 +0300 |
commit | 0b5d713b5943e22d533615d8bb85918a46f465df (patch) | |
tree | e27b6a940e6197b9b19b3d41caec434b3274d64c | |
parent | 26269ba9ce69ba425d0f34ed20127835272d2a15 (diff) |
Added SHA generation action
-rw-r--r-- | .github/workflows/hash-gen.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/hash-gen.yml b/.github/workflows/hash-gen.yml new file mode 100644 index 0000000..1b80fcf --- /dev/null +++ b/.github/workflows/hash-gen.yml @@ -0,0 +1,24 @@ +name: Generate sha256 hashes for release files + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Generate Hashes + uses: MCJack123/ghaction-generate-release-hashes@v1 + with: + hash-type: sha256 + file-name: hashes.txt + - name: Upload Hashes to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: hashes.txt + overwrite: true + asset_name: Files-SHA256-Hashes.txt + tag: ${{ github.ref }} + |