6
6
- " v1.*"
7
7
8
8
jobs :
9
- release :
9
+ build-linux :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
@@ -19,22 +19,72 @@ jobs:
19
19
cache : " npm"
20
20
21
21
- name : Install dependencies
22
- run : npm ci
22
+ run : npm install
23
23
24
24
- name : Build project
25
25
run : npm run build
26
26
27
27
- name : Build binaries
28
- run : npm run build:all
28
+ run : npm run build:linux-x64
29
29
30
- - name : Upload artifacts
30
+ - name : Upload build artifact
31
31
uses : actions/upload-artifact@v4
32
32
with :
33
- name : binaries
34
- path : |
35
- dist/macos-x64/cloud-archive
36
- dist/macos-arm64/cloud-archive
37
- dist/linux-x64/cloud-archive
38
- dist/linux-arm64/cloud-archive
39
- dist/win-x64/cloud-archive.exe
40
- dist/win-arm64/cloud-archive.exe
33
+ name : linux-x64
34
+ path : dist/linux-x64.tar
35
+ retention-days : 1
36
+
37
+ # build-windows:
38
+ # runs-on: windows-latest
39
+
40
+ # steps:
41
+ # - uses: actions/checkout@v4
42
+
43
+ # - name: Setup Node.js
44
+ # uses: actions/setup-node@v4
45
+ # with:
46
+ # node-version: "22"
47
+ # cache: "npm"
48
+
49
+ # - name: Install dependencies
50
+ # run: npm install
51
+
52
+ # - name: Build project
53
+ # run: npm run build
54
+
55
+ # - name: Build binaries
56
+ # run: npm run build:win-x64
57
+
58
+ # - name: Upload build artifact
59
+ # uses: actions/upload-artifact@v4
60
+ # with:
61
+ # name: win-x64
62
+ # path: dist/win-x64.tar
63
+ # retention-days: 1
64
+
65
+ release :
66
+ needs :
67
+ # - build-windows
68
+ - build-linux
69
+ runs-on : ubuntu-latest
70
+ steps :
71
+ - name : Get linux build
72
+ uses : actions/download-artifact@v4
73
+ with :
74
+ name : linux-x64
75
+ path : linux-x64.tar
76
+
77
+ # - name: Get windows build
78
+ # uses: actions/download-artifact@v4
79
+ # with:
80
+ # name: win-x64
81
+ # path: win-x64.tar
82
+
83
+ - uses : " marvinpinto/action-automatic-releases@latest"
84
+ with :
85
+ repo_token : " ${{ secrets.GH_TOKEN }}"
86
+ prerelease : false
87
+ title : ${{ github.ref }}
88
+ tag : ${{ github.ref }}
89
+ files : |
90
+ linux-x64.tar
0 commit comments