File tree 3 files changed +36
-0
lines changed
3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Arduino IDE
3
3
on :
4
4
create :
5
5
push :
6
+
6
7
branches :
7
8
- main
8
9
- ' [0-9]+.[0-9]+.x'
15
16
- ' !scripts/merge-channel-files.js'
16
17
- ' static/**'
17
18
- ' *.md'
19
+ - ' .github/workflows/test-s3-upload.yml'
18
20
tags :
19
21
- ' [0-9]+.[0-9]+.[0-9]+*'
20
22
workflow_dispatch :
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ name: Check Certificates
5
5
on :
6
6
create :
7
7
push :
8
+ paths-ignore :
9
+ - " .github/workflows/test-s3-upload.yml"
8
10
paths :
9
11
- ' .github/workflows/check-certificates.ya?ml'
10
12
pull_request :
Original file line number Diff line number Diff line change
1
+ name : Test S3 Upload
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - use-aws-oidc
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ sync-to-s3 :
11
+ runs-on : ubuntu-latest
12
+
13
+ permissions :
14
+ id-token : write
15
+ contents : read
16
+
17
+ steps :
18
+ - name : Configure AWS Credentials
19
+ uses : aws-actions/configure-aws-credentials@v4
20
+ with :
21
+ role-to-assume : ${{ secrets.AWS_ROLE_ARN }}
22
+ aws-region : us-east-1
23
+
24
+ - name : Create test folder and files
25
+ run : |
26
+ mkdir -p test-folder
27
+ echo "File 1 content" > test-folder/file1.txt
28
+ echo "File 2 content" > test-folder/file2.txt
29
+ echo "File 3 content" > test-folder/file3.txt
30
+
31
+ - name : Sync folder to S3
32
+ run : aws s3 sync test-folder s3://${{ secrets.DOWNLOADS_BUCKET }}/test-folder
You can’t perform that action at this time.
0 commit comments