53
53
- name : pack artifacts
54
54
run : |
55
55
mkdir -p ./artifacts
56
- VERSION="${{ needs.preflight.outputs.SOURCE_REF_NAME }}" # will be tag or branch name
56
+ VERSION="${{ needs.preflight.outputs.SOURCE_REF_SLUG }}" # will be tag or branch name
57
57
mv ./target/testnet/polkadot ./artifacts/.
58
58
mv ./target/testnet/polkadot-prepare-worker ./artifacts/.
59
59
mv ./target/testnet/polkadot-execute-worker ./artifacts/.
62
62
sha256sum polkadot | tee polkadot.sha256
63
63
shasum -c polkadot.sha256
64
64
cd ../
65
- EXTRATAG="${{ needs.preflight.outputs.SOURCE_REF_NAME }}-${COMMIT_SHA}"
65
+ EXTRATAG="${{ needs.preflight.outputs.SOURCE_REF_SLUG }}-${COMMIT_SHA}"
66
66
echo "Polkadot version = ${VERSION} (EXTRATAG = ${EXTRATAG})"
67
67
echo -n ${VERSION} > ./artifacts/VERSION
68
68
echo -n ${EXTRATAG} > ./artifacts/EXTRATAG
77
77
- name : upload artifacts
78
78
uses : actions/upload-artifact@v4
79
79
with :
80
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
80
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
81
81
path : artifacts.tar
82
82
retention-days : 1
83
83
@@ -103,15 +103,15 @@ jobs:
103
103
mkdir -p ./artifacts
104
104
mv ./target/release/polkadot-parachain ./artifacts/.
105
105
echo "___The VERSION is either a tag name or the curent branch if triggered not by a tag___"
106
- echo ${{ needs.preflight.outputs.SOURCE_REF_NAME }} | tee ./artifacts/VERSION
106
+ echo ${{ needs.preflight.outputs.SOURCE_REF_SLUG }} | tee ./artifacts/VERSION
107
107
108
108
- name : tar
109
109
run : tar -cvf artifacts.tar artifacts
110
110
111
111
- name : upload artifacts
112
112
uses : actions/upload-artifact@v4
113
113
with :
114
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
114
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
115
115
path : artifacts.tar
116
116
retention-days : 1
117
117
@@ -147,7 +147,7 @@ jobs:
147
147
- name : upload artifacts
148
148
uses : actions/upload-artifact@v4
149
149
with :
150
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
150
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
151
151
path : artifacts.tar
152
152
retention-days : 1
153
153
@@ -172,8 +172,8 @@ jobs:
172
172
mkdir -p ./artifacts
173
173
mv ./target/testnet/adder-collator ./artifacts/.
174
174
mv ./target/testnet/undying-collator ./artifacts/.
175
- echo -n "${{ needs.preflight.outputs.SOURCE_REF_NAME }}" > ./artifacts/VERSION
176
- echo -n "${{ needs.preflight.outputs.SOURCE_REF_NAME }}-${COMMIT_SHA}" > ./artifacts/EXTRATAG
175
+ echo -n "${{ needs.preflight.outputs.SOURCE_REF_SLUG }}" > ./artifacts/VERSION
176
+ echo -n "${{ needs.preflight.outputs.SOURCE_REF_SLUG }}-${COMMIT_SHA}" > ./artifacts/EXTRATAG
177
177
echo "adder-collator version = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
178
178
echo "undying-collator version = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
179
179
cp -r ./docker/* ./artifacts
@@ -184,7 +184,7 @@ jobs:
184
184
- name : upload artifacts
185
185
uses : actions/upload-artifact@v4
186
186
with :
187
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
187
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
188
188
path : artifacts.tar
189
189
retention-days : 1
190
190
@@ -209,8 +209,8 @@ jobs:
209
209
mv ./target/testnet/malus ./artifacts/.
210
210
mv ./target/testnet/polkadot-execute-worker ./artifacts/.
211
211
mv ./target/testnet/polkadot-prepare-worker ./artifacts/.
212
- echo -n "${{ needs.preflight.outputs.SOURCE_REF_NAME }}" > ./artifacts/VERSION
213
- echo -n "${{ needs.preflight.outputs.SOURCE_REF_NAME }}-${COMMIT_SHA}" > ./artifacts/EXTRATAG
212
+ echo -n "${{ needs.preflight.outputs.SOURCE_REF_SLUG }}" > ./artifacts/VERSION
213
+ echo -n "${{ needs.preflight.outputs.SOURCE_REF_SLUG }}-${COMMIT_SHA}" > ./artifacts/EXTRATAG
214
214
echo "polkadot-test-malus = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"
215
215
cp -r ./docker/* ./artifacts
216
216
@@ -220,7 +220,7 @@ jobs:
220
220
- name : upload artifacts
221
221
uses : actions/upload-artifact@v4
222
222
with :
223
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
223
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
224
224
path : artifacts.tar
225
225
retention-days : 1
226
226
@@ -246,6 +246,7 @@ jobs:
246
246
WASM_BUILD_NO_COLOR=1 forklift cargo build --locked --release -p staging-node-cli
247
247
ls -la target/release/
248
248
- name : pack artifacts
249
+ shell : bash
249
250
run : |
250
251
mv target/release/substrate-node ./artifacts/substrate/substrate
251
252
echo -n "Substrate version = "
@@ -264,7 +265,7 @@ jobs:
264
265
- name : upload artifacts
265
266
uses : actions/upload-artifact@v4
266
267
with :
267
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
268
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
268
269
path : artifacts.tar
269
270
retention-days : 1
270
271
@@ -294,7 +295,7 @@ jobs:
294
295
- name : upload artifacts
295
296
uses : actions/upload-artifact@v4
296
297
with :
297
- name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
298
+ name : ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
298
299
path : artifacts.tar
299
300
retention-days : 1
300
301
@@ -313,7 +314,7 @@ jobs:
313
314
314
315
315
316
with :
316
- name : build-test-parachain-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
317
+ name : build-test-parachain-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
317
318
318
319
- name : tar
319
320
run : tar -xvf artifacts.tar
@@ -337,7 +338,7 @@ jobs:
337
338
338
339
339
340
with :
340
- name : build-linux-stable-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
341
+ name : build-linux-stable-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
341
342
342
343
- name : tar
343
344
run : tar -xvf artifacts.tar
@@ -361,7 +362,7 @@ jobs:
361
362
362
363
363
364
with :
364
- name : build-test-collators-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
365
+ name : build-test-collators-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
365
366
366
367
- name : tar
367
368
run : tar -xvf artifacts.tar
@@ -385,7 +386,7 @@ jobs:
385
386
386
387
387
388
with :
388
- name : build-malus-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
389
+ name : build-malus-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
389
390
390
391
- name : tar
391
392
run : tar -xvf artifacts.tar
@@ -409,7 +410,7 @@ jobs:
409
410
410
411
411
412
with :
412
- name : build-linux-substrate-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
413
+ name : build-linux-substrate-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
413
414
414
415
- name : tar
415
416
run : tar -xvf artifacts.tar
@@ -441,23 +442,23 @@ jobs:
441
442
442
443
443
444
with :
444
- name : build-linux-stable-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
445
+ name : build-linux-stable-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
445
446
- name : tar
446
447
run : |
447
448
tar -xvf artifacts.tar
448
449
rm artifacts.tar
449
450
450
451
451
452
with :
452
- name : build-linux-stable-cumulus-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
453
+ name : build-linux-stable-cumulus-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
453
454
- name : tar
454
455
run : |
455
456
tar -xvf artifacts.tar
456
457
rm artifacts.tar
457
458
458
459
459
460
with :
460
- name : prepare-bridges-zombienet-artifacts-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
461
+ name : prepare-bridges-zombienet-artifacts-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
461
462
- name : tar
462
463
run : |
463
464
tar -xvf artifacts.tar
@@ -482,7 +483,7 @@ jobs:
482
483
483
484
484
485
with :
485
- name : build-linux-stable-cumulus-${{ needs.preflight.outputs.SOURCE_REF_NAME }}
486
+ name : build-linux-stable-cumulus-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
486
487
487
488
- name : tar
488
489
run : tar -xvf artifacts.tar
0 commit comments