File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 1- name : Publish tags
1+ name : Build and publish binaries
22
33on :
4- push :
5- branches :
6- - main
4+ release :
5+ types : [published]
76
87jobs :
98 build-and-publish-binaries :
10- name : Build binaries (${{ matrix.os }})
11- strategy :
12- matrix :
13- os : [ubuntu-latest, windows-latest, macos-latest]
14- runs-on : ${{ matrix.os }}
9+ name : Build and publish binaries (win)
10+ runs-on : windows-latest
1511 permissions :
1612 contents : write
1713 steps :
1814 - name : Checkout
1915 uses : actions/checkout@v3
16+ - name : Inject version
17+ uses : richardrigutins/replace-in-files@v2
18+ with :
19+ files : " package.json"
20+ search-text : " \" version\" : \" 0.0.0\" "
21+ replacement-text : " \" version\" : \" ${{ github.event.release.tag_name }}\" "
2022 - name : Setup Node
2123 uses : actions/setup-node@v4
2224 with :
2325 node-version : " 22"
2426 - run : npm ci
2527 - run : npm run build
28+ - name : Attach binaries to release
29+ uses : softprops/action-gh-release@v2
30+ with :
31+ files : dist/thyme-*-win-setup.exe
Original file line number Diff line number Diff line change 1515 "target" : [
1616 "dmg"
1717 ] ,
18- "artifactName" : "thyme-${version}-macos.${ext}"
18+ "artifactName" : "thyme-${version}-macos-setup .${ext}"
1919 } ,
2020 "win" : {
2121 "target" : [
2626 ]
2727 }
2828 ] ,
29- "artifactName" : "thyme-${version}-win.${ext}" ,
29+ "artifactName" : "thyme-${version}-win-setup .${ext}" ,
3030 "publish" : [ "github" ] ,
3131 } ,
3232 "nsis" : {
Original file line number Diff line number Diff line change 22 "name" : " thyme" ,
33 "repository" : " github:JupiterPi/thyme" ,
44 "private" : true ,
5- "version" : " v0 .0.1 " ,
5+ "version" : " 0 .0.0 " ,
66 "type" : " module" ,
77 "scripts" : {
88 "dev" : " vite" ,
You can’t perform that action at this time.
0 commit comments