File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build/release Electron app
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*.*.*
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ${{ matrix.os }}
11
+
12
+ strategy :
13
+ matrix :
14
+ os : [ubuntu-latest, macos-latest, windows-latest]
15
+
16
+ steps :
17
+ - name : Check out Git repository
18
+ uses : actions/checkout@v3
19
+
20
+ - name : Install Node.js
21
+ uses : actions/setup-node@v3
22
+ with :
23
+ node-version : 16
24
+
25
+ - name : Install Dependencies
26
+ run : npm install
27
+
28
+ - name : build-linux
29
+ if : matrix.os == 'ubuntu-latest'
30
+ run : npm run build:linux
31
+
32
+ - name : build-mac
33
+ if : matrix.os == 'macos-latest'
34
+ run : npm run build:mac
35
+
36
+ - name : build-win
37
+ if : matrix.os == 'windows-latest'
38
+ run : npm run build:win
39
+
40
+ - name : release
41
+ uses : softprops/action-gh-release@v1
42
+ with :
43
+ draft : true
44
+ files : |
45
+ dist/*.exe
46
+ dist/*.zip
47
+ dist/*.dmg
48
+ dist/*.AppImage
49
+ dist/*.snap
50
+ dist/*.deb
51
+ dist/*.rpm
52
+ dist/*.tar.gz
53
+ dist/*.yml
54
+ dist/*.blockmap
55
+ env :
56
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments