feat: add digest for actions

This commit is contained in:
0xJacky 2023-05-05 20:20:03 +08:00
parent fd342e6075
commit c16ea53ed1
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
2 changed files with 4 additions and 1 deletions

View file

@ -183,12 +183,15 @@ jobs:
run: | run: |
cp README*.md ./dist cp README*.md ./dist
find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T - find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T -
openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' >> ${{ env.DIST }}.tar.gz.digest
- name: Publish - name: Publish
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: github.event_name == 'release' if: github.event_name == 'release'
with: with:
files: ${{ env.DIST }}.tar.gz files: |
${{ env.DIST }}.tar.gz
${{ env.DIST }}.tar.gz.digest
docker-build: docker-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest