@@ -120,7 +120,7 @@ blocks:
120
120
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
121
121
- npx node-pre-gyp package
122
122
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
123
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
123
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
124
124
- name : " Release: LTS:20"
125
125
commands :
126
126
- sem-version node 20.10.0
@@ -129,7 +129,7 @@ blocks:
129
129
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
130
130
- npx node-pre-gyp package
131
131
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
132
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
132
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
133
133
- name : " Release: latest: 21"
134
134
commands :
135
135
- sem-version node 21.4.0
@@ -138,7 +138,7 @@ blocks:
138
138
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
139
139
- npx node-pre-gyp package
140
140
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
141
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
141
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
142
142
143
143
- name : " Linux arm64: Release"
144
144
dependencies : [ ]
@@ -164,7 +164,7 @@ blocks:
164
164
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
165
165
- npx node-pre-gyp package
166
166
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
167
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
167
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
168
168
- name : " Release: LTS:20"
169
169
commands :
170
170
- sem-version node 20.10.0
@@ -173,7 +173,7 @@ blocks:
173
173
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
174
174
- npx node-pre-gyp package
175
175
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
176
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
176
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
177
177
- name : " Release: latest: 21"
178
178
commands :
179
179
- sem-version node 21.4.0
@@ -182,7 +182,7 @@ blocks:
182
182
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
183
183
- npx node-pre-gyp package
184
184
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
185
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
185
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
186
186
187
187
- name : " Linux amd64 musl: Release"
188
188
dependencies : [ ]
@@ -206,21 +206,21 @@ blocks:
206
206
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
207
207
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh
208
208
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
209
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
209
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
210
210
- name : " Release: LTS:20"
211
211
commands :
212
212
- export NODE_ABI=115
213
213
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
214
214
- docker run -v "$(pwd):/v" node:20-alpine /v/.semaphore/build-docker.sh
215
215
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
216
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
216
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
217
217
- name : " Release: latest: 21"
218
218
commands :
219
219
- export NODE_ABI=120
220
220
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
221
221
- docker run -v "$(pwd):/v" node:21-alpine /v/.semaphore/build-docker.sh
222
222
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
223
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
223
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
224
224
225
225
- name : " Linux arm64 musl: Release"
226
226
dependencies : [ ]
@@ -244,21 +244,21 @@ blocks:
244
244
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
245
245
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh
246
246
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
247
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
247
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
248
248
- name : " Release: LTS:20"
249
249
commands :
250
250
- export NODE_ABI=115
251
251
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
252
252
- docker run -v "$(pwd):/v" node:20-alpine /v/.semaphore/build-docker.sh
253
253
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
254
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
254
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
255
255
- name : " Release: latest: 21"
256
256
commands :
257
257
- export NODE_ABI=120
258
258
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
259
259
- docker run -v "$(pwd):/v" node:21-alpine /v/.semaphore/build-docker.sh
260
260
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
261
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
261
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
262
262
263
263
- name : " macOS arm64/m1: Release"
264
264
dependencies : [ ]
@@ -284,7 +284,7 @@ blocks:
284
284
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
285
285
- npx node-pre-gyp package
286
286
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
287
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
287
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
288
288
- name : " Release: LTS:20"
289
289
commands :
290
290
- sem-version node 20.10.0
@@ -293,7 +293,7 @@ blocks:
293
293
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
294
294
- npx node-pre-gyp package
295
295
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
296
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
296
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
297
297
- name : " Release: latest: 21"
298
298
commands :
299
299
- sem-version node 21.4.0
@@ -302,4 +302,24 @@ blocks:
302
302
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
303
303
- npx node-pre-gyp package
304
304
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
305
- - artifact push project "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
305
+ - artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
306
+
307
+ - name : ' Packaging: tar all release artifacts'
308
+ dependencies :
309
+ - ' Linux amd64: Release'
310
+ - ' Linux arm64: Release'
311
+ - ' Linux amd64 musl: Release'
312
+ - ' Linux arm64 musl: Release'
313
+ - ' macOS arm64/m1: Release'
314
+ run :
315
+ when : " tag =~ '^v[0-9]\\ .'"
316
+ task :
317
+ agent :
318
+ machine :
319
+ type : s1-prod-ubuntu20-04-amd64-2
320
+ jobs :
321
+ - name : " Tarball"
322
+ commands :
323
+ - artifact pull workflow artifacts
324
+ - tar -czvf artifacts.${SEMAPHORE_GIT_TAG_NAME}.tar.gz artifacts
325
+ - artifact push project "artifacts.${SEMAPHORE_GIT_TAG_NAME}.tar.gz" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/artifacts.${SEMAPHORE_GIT_TAG_NAME}.tar.gz"
0 commit comments