Skip to content

Commit e1f5b07

Browse files
committed
workflows: add artifact upload option to building job
Don't upload artifacts every time when building job is manualy triggered. Insted, use customizable options for that. It allow us to save some space since we're limited in space. Signed-off-by: Anna Shaleva <[email protected]>
1 parent 9bb4cf1 commit e1f5b07

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ on:
2121
description: 'Ref to build geth [default: latest bane-main; examples: v0.92.0, 0a4ff9d3e4a9ab432fd5812eb18c98e03b5a7432]'
2222
required: false
2323
default: ''
24+
upload_geth:
25+
description: 'Upload Geth binary artifact [default: false; examples: true, false]'
26+
required: false
27+
default: 'false'
28+
upload_alltools:
29+
description: 'Upload Alltools binary artifacts [default: false; examples: true, false]'
30+
required: false
31+
default: 'false'
2432
push_image:
2533
description: 'Push images to DockerHub [default: false; examples: true, false]'
2634
required: false
@@ -62,15 +70,15 @@ jobs:
6270
mv ./build/bin/ ./build/alltools-${{ matrix.os.bin-name }}-${{ matrix.arch }}
6371
6472
- name: Upload Geth artifact
65-
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
73+
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_geth == 'true') }}
6674
uses: actions/upload-artifact@v4
6775
with:
6876
name: geth-${{ matrix.os.bin-name }}-${{ matrix.arch }}
6977
path: ./build/standalone/geth-${{ matrix.os.bin-name }}-${{ matrix.arch }}
7078
if-no-files-found: error
7179

7280
- name: Upload Alltools artifact
73-
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
81+
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_alltools == 'true') }}
7482
uses: actions/upload-artifact@v4
7583
with:
7684
name: alltools-${{ matrix.os.bin-name }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)