Skip to content

Commit aac25b2

Browse files
committed
构建github自动打包
1 parent e1fce92 commit aac25b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ jobs:
3636
run: npm install
3737

3838
- name: Build and Publish
39-
run: npm run build
39+
run: npm run release
4040
env:
4141
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"scripts": {
1313
"dev": "vite",
1414
"build": "vue-tsc && vite build && npm run build:icons && electron-builder",
15+
"release": "vue-tsc && vite build && npm run build:icons && electron-builder --publish always",
1516
"build:icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten",
1617
"preview": "vite preview"
1718
},

0 commit comments

Comments
 (0)