Skip to content

Commit

Permalink
fix:修改默认发布策略为发布 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwtesttt authored May 31, 2024
1 parent 7d2680d commit af27cea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-electron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest]
architecture: [amd64,arm64]
architecture: [amd64]

steps:
- name: Check out Git repository
Expand All @@ -26,8 +26,10 @@ jobs:

- name: Build/release Electron app
uses: Yan-Jobs/[email protected]
env:
EP_RELEASE: true
# env:
# EP_DRAFT: false
# EP_PRE_RELEASE: false
# EP_RELEASE: true
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
Expand All @@ -36,4 +38,3 @@ jobs:
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
build_script_name: build:electron
release_type: release
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,12 @@
"vite-plugin-pages": "^0.32.1",
"vue-auto-translate": "^1.1.13"
},
"build": {
"publish": {
"provider": "github",
"releaseType": "release",
"publishAutoUpdate": false
}
},
"main": "dist-electron/main.js"
}

0 comments on commit af27cea

Please sign in to comment.