6
6
branches :
7
7
- main
8
8
- develop
9
+ - dev
9
10
10
11
jobs :
11
12
configure :
@@ -220,7 +221,6 @@ jobs:
220
221
221
222
build_package_nanos :
222
223
needs : [configure, setup_rust, build, build_ledger, test_zemu]
223
- if : ${{ github.ref == 'refs/heads/main' }}
224
224
runs-on : ubuntu-latest
225
225
container :
226
226
image : zondax/ledger-app-builder:latest
@@ -264,10 +264,11 @@ jobs:
264
264
id : nanos
265
265
run : echo "tag_name=$(./app/pkg/installer_nanos.sh version)" >> $GITHUB_OUTPUT
266
266
- name : Create or Update Release (1)
267
+ if : ${{ github.ref == 'refs/heads/main' }}
267
268
id : create_release_0
268
269
uses : softprops/action-gh-release@v1
269
270
env :
270
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
271
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
271
272
with :
272
273
files : ./app/pkg/installer_nanos.sh
273
274
tag_name : ${{ steps.nanos.outputs.tag_name }}
@@ -284,7 +285,6 @@ jobs:
284
285
test_zemu,
285
286
rust_tests,
286
287
]
287
- if : ${{ github.ref == 'refs/heads/main' }}
288
288
runs-on : ubuntu-latest
289
289
container :
290
290
image : zondax/ledger-app-builder:latest
@@ -328,10 +328,11 @@ jobs:
328
328
id : nanosp
329
329
run : echo "tag_name=$(./app/pkg/installer_nanos_plus.sh version)" >> $GITHUB_OUTPUT
330
330
- name : Update Release
331
+ if : ${{ github.ref == 'refs/heads/main' }}
331
332
id : update_release_2
332
333
uses : softprops/action-gh-release@v1
333
334
env :
334
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
335
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
335
336
with :
336
337
files : ./app/pkg/installer_nanos_plus.sh
337
338
tag_name : ${{ steps.nanosp.outputs.tag_name }}
@@ -348,7 +349,6 @@ jobs:
348
349
test_zemu,
349
350
rust_tests,
350
351
]
351
- if : ${{ github.ref == 'refs/heads/main' }}
352
352
runs-on : ubuntu-latest
353
353
container :
354
354
image : zondax/ledger-app-builder:latest
@@ -383,7 +383,6 @@ jobs:
383
383
${{ runner.os }}-rust-
384
384
- name : Install rust-src component
385
385
run : rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
386
-
387
386
- name : Build Stax
388
387
shell : bash -l {0}
389
388
run : |
@@ -392,10 +391,11 @@ jobs:
392
391
id : stax
393
392
run : echo "tag_name=$(./app/pkg/installer_stax.sh version)" >> $GITHUB_OUTPUT
394
393
- name : Update Release
394
+ if : ${{ github.ref == 'refs/heads/main' }}
395
395
id : update_release_2
396
396
uses : softprops/action-gh-release@v1
397
397
env :
398
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
398
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
399
399
with :
400
400
files : ./app/pkg/installer_stax.sh
401
401
tag_name : ${{ steps.stax.outputs.tag_name }}
@@ -412,7 +412,6 @@ jobs:
412
412
test_zemu,
413
413
rust_tests,
414
414
]
415
- if : ${{ github.ref == 'refs/heads/main' }}
416
415
runs-on : ubuntu-latest
417
416
container :
418
417
image : zondax/ledger-app-builder:latest
@@ -447,7 +446,6 @@ jobs:
447
446
${{ runner.os }}-rust-
448
447
- name : Install rust-src component
449
448
run : rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
450
-
451
449
- name : Build Flex
452
450
shell : bash -l {0}
453
451
run : |
@@ -456,10 +454,11 @@ jobs:
456
454
id : flex
457
455
run : echo "tag_name=$(./app/pkg/installer_flex.sh version)" >> $GITHUB_OUTPUT
458
456
- name : Update Release
457
+ if : ${{ github.ref == 'refs/heads/main' }}
459
458
id : update_release_2
460
459
uses : softprops/action-gh-release@v1
461
460
env :
462
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
461
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
463
462
with :
464
463
files : ./app/pkg/installer_flex.sh
465
464
tag_name : ${{ steps.flex.outputs.tag_name }}
0 commit comments