File tree Expand file tree Collapse file tree 2 files changed +62
-7
lines changed Expand file tree Collapse file tree 2 files changed +62
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Build-Windows
2
-
1
+ name : Build-Linux
3
2
4
3
on :
5
4
push :
10
9
jobs :
11
10
# Build job
12
11
build :
13
- runs-on : windows -latest
12
+ runs-on : ubuntu -latest
14
13
steps :
15
14
- name : Checkout
16
15
uses : actions/checkout@v4
34
33
- name : Build api
35
34
run : npm run api
36
35
- name : Build cli
37
- run : npm run cli:build:win
36
+ run : npm run cli:build:linux
38
37
- name : Build APP
39
- run : npm run build:win
38
+ run : npm run build:linux
Original file line number Diff line number Diff line change 1
- name : Release-Windows
1
+ name : Release
2
2
3
3
on :
4
4
push :
9
9
10
10
jobs :
11
11
# Build job
12
- build :
12
+ build-windows :
13
13
runs-on : windows-latest
14
14
permissions : write-all
15
15
steps :
93
93
ALIYUN_ACCESS_KEY_ID : ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
94
94
ALIYUN_ACCESS_KEY_SECRET : ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
95
95
run : node tools/upload.js --note --app
96
+
97
+ build-linux :
98
+ needs : build-windows
99
+ runs-on : ubuntu-latest
100
+ permissions : write-all
101
+ steps :
102
+ - name : Checkout
103
+ uses : actions/checkout@v4
104
+ with :
105
+ fetch-depth : 0
106
+ - name : Set Version
107
+ id : version
108
+ shell : bash
109
+ run : |
110
+ version=${GITHUB_REF_NAME#v}
111
+ echo "VERSION=$version" >> $GITHUB_ENV
112
+ - name : Setup Node
113
+ uses : actions/setup-node@v4
114
+ with :
115
+ node-version : 20
116
+ cache : npm
117
+ - name : Install dependencies
118
+ run : npm install
119
+ - name : Build with VitePress
120
+ run : npm run docs:build
121
+ - name : Build docan
122
+ run : npm run docan
123
+ - name : Build dolin
124
+ run : npm run dolin
125
+ - name : Build worker
126
+ run : npm run worker
127
+ - name : Build api
128
+ run : npm run api
129
+ - name : Build cli
130
+ run : npm run cli:build:linux
131
+ - name : Build APP
132
+ run : npm run build:linux
133
+ - name : Upload CLI
134
+ uses : actions/upload-release-asset@v1
135
+ env :
136
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
137
+ with :
138
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
139
+ asset_path : ./resources/bin/ecb_cli
140
+ asset_name : ecb_cli
141
+ asset_content_type : application/octet-stream
142
+
143
+ - name : Upload DEB
144
+ uses : actions/upload-release-asset@v1
145
+ env :
146
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
147
+ with :
148
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
149
+ asset_path : ./dist/ecubus-pro_${{ env.VERSION }}_amd64.deb
150
+ asset_name : ecubuspro_${{ env.VERSION }}_amd64.deb
151
+ asset_content_type : application/vnd.debian.binary-package
You can’t perform that action at this time.
0 commit comments