-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit dfc288d
Skip publishing releases to AWS if credentials not configured
The "Release" and "Publish Nightly Build" workflows upload the generated build files to the AWS S3 bucket used by
Arduino's downloads server.
The necessary credentials are configured in Arduino's repository. However, these workflows might be used in other
contexts:
- by contributors validating proposed changes to the release infrastructure in their fork
- by hard forks of the project
In either case (especially the former), the fork owner is unlikely to be willing/able to set up the AWS infrastructure
that would be needed to use this capability of the workflow.
Since these workflows also publish the builds to GitHub, the AWS upload is not essential to either 3rd party use case.
The workflow code is hereby configured to skip the AWS upload steps if the necessary credentials have not been
configured in the repository. The existence of the `AWS_ROLE_TO_ASSUME` repository secret is used as the indicator of
whether the credentials are configured. This will allow runs of the workflow in forks without the need to remove the AWS
upload steps.1 parent 624f905 commit dfc288d
File tree
2 files changed
+15
-0
lines changed- .github/workflows
2 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | + | ||
265 | + | ||
266 | + | ||
267 | + | ||
268 | + | ||
264 | 269 | | |
270 | + | ||
265 | 271 | | |
266 | 272 | | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
270 | 276 | | |
271 | 277 | | |
278 | + | ||
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
286 | + | ||
279 | 287 | | |
280 | 288 | | |
281 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
283 | + | ||
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
291 | + | ||
285 | 292 | | |
286 | 293 | | |
287 | 294 | | |
| |||
0 commit comments