File tree 3 files changed +35
-0
lines changed
3 files changed +35
-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
+ on :
3
+ push :
4
+ branches :
5
+ - use-aws-oidc
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ sync-to-s3 :
10
+ runs-on : ubuntu-latest
11
+ environment : production
12
+ permissions :
13
+ id-token : write
14
+ contents : read
15
+
16
+ steps :
17
+ - name : Configure AWS Credentials
18
+ uses : aws-actions/configure-aws-credentials@v4
19
+ with :
20
+ role-to-assume : ${{ secrets.AWS_ROLE_ARN }}
21
+ aws-region : us-east-1
22
+
23
+ - name : Create test folder and files
24
+ run : |
25
+ mkdir -p test-folder
26
+ echo "File 1 content" > test-folder/file1.txt
27
+ echo "File 2 content" > test-folder/file2.txt
28
+ echo "File 3 content" > test-folder/file3.txt
29
+
30
+ - name : Sync folder to S3
31
+ run : aws s3 sync test-folder s3://${{ secrets.DOWNLOADS_BUCKET }}/test-folder
You can’t perform that action at this time.
0 commit comments