Skip to content

Commit 84e4793

Browse files
committed
Add switch for uploading to S3
When we're just testing things, we often don't need to upload things to S3 and can just download the artifacts directly from the job. This lets us disable uploading to S3 so we don't fill it with too much garbage.
1 parent ca7f535 commit 84e4793

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
required: false
2424
type: string
2525
default: 'main'
26+
upload_to_s3:
27+
description: 'Whether to upload the built artifacts to S3. If false, the artifacts will only be uploaded as workflow artifacts.'
28+
required: false
29+
type: boolean
30+
default: true
2631
use_dev:
2732
description: 'Use the "dev" branch of the shared-actions repo'
2833
required: false
@@ -38,6 +43,7 @@ jobs:
3843
project_name: ${{ inputs.project_name }}
3944
platform_list: ${{ inputs.platform_list }}
4045
vanagon_branch: ${{ inputs.vanagon_branch }}
46+
upload_to_s3: ${{ inputs.upload_to_s3 }}
4147
secrets: inherit
4248
build_dev:
4349
if: ${{ github.event.inputs.use_dev == 'true' }}
@@ -47,4 +53,5 @@ jobs:
4753
project_name: ${{ inputs.project_name }}
4854
platform_list: ${{ inputs.platform_list }}
4955
vanagon_branch: ${{ inputs.vanagon_branch }}
56+
upload_to_s3: ${{ inputs.upload_to_s3 }}
5057
secrets: inherit

0 commit comments

Comments
 (0)