File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,27 @@ This action will download an Augmented SBOM file in `$RELEASE_ASSETS/sbom.json`.
132
132
silk_asset_group: mongodb-python-driver
133
133
` ` `
134
134
135
+ # # Upload S3 assets
136
+
137
+ A number of scripts create files in the `tmp/s3_assets` folder, which then can
138
+ be uploaded to the product's S3 bucket :
139
+
140
+ ` ` ` yaml
141
+ - name: Setup
142
+ uses: mongodb-labs/drivers-github-tools/setup@v2
143
+ with:
144
+ ...
145
+
146
+ - name: Upload S3 assets
147
+ uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
148
+ with:
149
+ version: <release version>
150
+ product_name: <product_name>
151
+ ` ` `
152
+
153
+ Optionally, you can specify which files to upload using the `filenames` input.
154
+ By default, all files in the S3 directory are uploaded.
155
+
135
156
# # Python Helper Scripts
136
157
137
158
These scripts are opinionated helper scripts for Python releases.
@@ -177,4 +198,4 @@ If `dry_run` is set, nothing will be published or pushed.
177
198
product_name: winkerberos
178
199
token: ${{ github.token }}
179
200
dry_run: ${{ inputs.dry_run }}
180
- ` ` `
201
+ ` ` `
Original file line number Diff line number Diff line change
1
+ name : Upload S3 assets
2
+ description : Uploads assets from the S3 asset directory
3
+ inputs :
4
+ version :
5
+ description : " The published version"
6
+ required : true
7
+ product_name :
8
+ description : " The name of the product"
9
+ required : true
10
+ filenames :
11
+ description : Files to upload - supports wildcards and glob patterns
12
+ default : ' *'
13
+ required : false
14
+
15
+ runs :
16
+ using : composite
17
+ steps :
18
+ - shell : bash
19
+ working-directory : ${{ env.S3_ASSETS }}
20
+ run : |
21
+ for filename in ${{ inputs.filenames }}; do aws s3 cp ${filename} s3://${AWS_BUCKET}/${{ inputs.product_name }}/${{ inputs.version }}/${filename}; done
You can’t perform that action at this time.
0 commit comments