File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,27 @@ working directory.
148
148
uses: mongodb-labs/drivers-github-tools/code-scanning-export@v2
149
149
` ` `
150
150
151
+ # # Upload S3 assets
152
+
153
+ A number of scripts create files in the `tmp/s3_assets` folder, which then can
154
+ be uploaded to the product's S3 bucket :
155
+
156
+ ` ` ` yaml
157
+ - name: Setup
158
+ uses: mongodb-labs/drivers-github-tools/setup@v2
159
+ with:
160
+ ...
161
+
162
+ - name: Upload S3 assets
163
+ uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
164
+ with:
165
+ version: <release version>
166
+ product_name: <product_name>
167
+ ` ` `
168
+
169
+ Optionally, you can specify which files to upload using the `filenames` input.
170
+ By default, all files in the S3 directory are uploaded.
171
+
151
172
# # Python Helper Scripts
152
173
153
174
These scripts are opinionated helper scripts for Python releases.
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