Skip to content

Commit

Permalink
👷 release 添加文件 hash 列表
Browse files Browse the repository at this point in the history
  • Loading branch information
shoucandanghehe committed Aug 2, 2024
1 parent ed25b96 commit 864fe73
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 发布
on:
push:
tags:
- '**'
- "**"
workflow_dispatch:

jobs:
Expand All @@ -20,9 +20,19 @@ jobs:
- run: pnpm run build
- run: pnpm run check

- run: cd dist && zip -q -r -9 ../dist.zip .
- shell: bash
run: |
sudo apt-get update -y
sudo apt-get install hashdeep -y
- shell: bash
run: |
sha256deep -r -l ./dist > hash.sha256
cd dist
mv ../hash.sha256 .
zip -q -r -9 ../dist.zip .
- uses: softprops/action-gh-release@v2
with:
files: dist.zip
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 864fe73

Please sign in to comment.