Skip to content

Commit f2739d3

Browse files
umbynosRoberto Sora
and
Roberto Sora
authored
use s3 sync instead of ugly script to upload index to downloads server (#111)
* use s3 sync instead of ugly script to upload index to downloads server * Update .github/workflows/generate-index.yml Co-authored-by: Roberto Sora <[email protected]> Co-authored-by: Roberto Sora <[email protected]>
1 parent 5caed6a commit f2739d3

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/generate-index.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ jobs:
7676
run: gzip --keep boards/module_firmware_index.json
7777

7878
- name: s3 sync
79-
run: ./s3Copy.sh . s3://arduino-downloads-prod-beagle/arduino-fwuploader
79+
run: |
80+
aws s3 sync boards/ s3://${{ secrets.DOWNLOADS_BUCKET }}/arduino-fwuploader/boards
81+
aws s3 sync firmwares/ s3://${{ secrets.DOWNLOADS_BUCKET }}/arduino-fwuploader/firmwares
8082
env:
8183
AWS_REGION: "us-east-1" # or https://github.com/aws/aws-cli/issues/5623
8284
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

generator/s3Copy.sh

-11
This file was deleted.

0 commit comments

Comments
 (0)