File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,7 @@ name: Release
2
2
on : [push]
3
3
4
4
jobs :
5
- get-package-version :
6
- runs-on : ubuntu-latest
7
- steps :
8
- - name : get package version
9
- id : package-version
10
- uses : martinbeentjes/npm-get-version-action@master
11
- outputs :
12
- package-version : ${{ steps.package-version.outputs.current-version }}
13
-
14
- build :
15
- needs : [get-package-version]
5
+ build-and-release :
16
6
runs-on : ${{ matrix.os }}
17
7
strategy :
18
8
matrix :
@@ -23,17 +13,18 @@ jobs:
23
13
uses : actions/checkout@v2
24
14
- name : setup node
25
15
uses : actions/setup-node@v2
26
- with :
27
- node-version : 14
16
+ with :
17
+ node-version : 14
28
18
- name : install dependencies
29
19
run : npm ci
30
20
- name : install pkg
31
21
run : npm install -D pkg
22
+
32
23
- name : build
33
24
run : npm run build-${{ matrix.os }}
34
25
- name : add to release
35
26
uses : softprops/action-gh-release@v1
36
27
with :
37
- files : build/bin/cithak. *
28
+ files : build/bin/cithak*
38
29
draft : true
39
- tag_name : v${{ needs.get-package-version.outputs.package-version }}
30
+ tag_name : v${{ env.GITHUB_SHA }}
Original file line number Diff line number Diff line change 7
7
"build" : " NODE_ENV=production rollup -c" ,
8
8
"publish" : " npm run build" ,
9
9
"dev" : " rollup -cw" ,
10
- "build-ubuntu-latest" : " pkg -t linux ./cithak.js -o ./build/bin/cithak" ,
11
- "build-windows-latest" : " pkg -t win ./cithak.js -o ./build/bin/cithak" ,
12
- "build-macos-latest" : " pkg -t mac ./cithak.js -o ./build/bin/cithak"
10
+ "build-ubuntu-latest" : " pkg -t linux ./cithak.js -o ./build/bin/cithak-linux " ,
11
+ "build-windows-latest" : " pkg -t win ./cithak.js -o ./build/bin/cithak-win " ,
12
+ "build-macos-latest" : " pkg -t mac ./cithak.js -o ./build/bin/cithak-mac "
13
13
},
14
14
"bin" : {
15
15
"cithak" : " bin/cithak" ,
You can’t perform that action at this time.
0 commit comments