File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Release Package
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ build-and-upload :
12+ name : Build and Upload Chrome Package
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup pnpm
20+ uses : pnpm/action-setup@v3
21+ with :
22+ version : 9
23+ run_install : false
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : ' 20'
29+ cache : ' pnpm'
30+
31+ - name : Install dependencies
32+ run : pnpm install --frozen-lockfile
33+
34+ - name : Prepare build output
35+ run : |
36+ rm -rf build package
37+
38+ - name : Build extension package
39+ run : pnpm run zip
40+
41+ - name : Upload package to release
42+ uses : softprops/action-gh-release@v2
43+ with :
44+ files : package/*.zip
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments