diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 210cbc721..0a7bff519 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -4,10 +4,12 @@ description: "release" runs: using: "composite" steps: - - name: prepare tarball + - name: prepare tarball and checksum working-directory: src shell: bash - run: tar -cvzf mcfost.tar.gz mcfost + run: | + tar -cvzf mcfost.tar.gz mcfost + sha1sum mcfost_tar.tgz > mcfost_update.sha1 - name: Add binary to release uses: shogo82148/actions-upload-release-asset@v1.6.6 @@ -15,3 +17,10 @@ runs: upload_url: ${{ github.event.release.upload_url }} asset_path: src/mcfost.tar.gz asset_name: ${{ format('mcfost_{0}-{1}.tar.gz', runner.os, runner.arch) }} + + - name: Add sha1 to release + uses: shogo82148/actions-upload-release-asset@v1.6.6 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: src/mcfost_update.sha1 + asset_name: ${{ format('mcfost_{0}-{1}.sha1', runner.os, runner.arch) }}