Skip to content

Commit 42a4304

Browse files
👷 添加 Release CI
1 parent 4f3461e commit 42a4304

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: oven-sh/setup-bun@v2
16+
17+
- run: bun generate
18+
- run: bun check
19+
20+
- shell: bash
21+
run: |
22+
sudo apt-get update -y
23+
sudo apt-get install hashdeep -y
24+
25+
- shell: bash
26+
run: |
27+
cd .output/public
28+
sha256deep -r -l ./ > ../hash.sha256
29+
mv ../hash.sha256 .
30+
zip -q -r -9 ../../dist.zip .
31+
32+
- uses: softprops/action-gh-release@v2
33+
with:
34+
files: dist.zip
35+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)