Skip to content

Commit 89fd3de

Browse files
temp: test s3 upload
1 parent a95600d commit 89fd3de

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Arduino IDE
33
on:
44
create:
55
push:
6+
67
branches:
78
- main
89
- '[0-9]+.[0-9]+.x'
@@ -15,6 +16,7 @@ on:
1516
- '!scripts/merge-channel-files.js'
1617
- 'static/**'
1718
- '*.md'
19+
- '.github/workflows/test-s3-upload.yml'
1820
tags:
1921
- '[0-9]+.[0-9]+.[0-9]+*'
2022
workflow_dispatch:

.github/workflows/check-certificates.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ name: Check Certificates
55
on:
66
create:
77
push:
8+
paths-ignore:
9+
- ".github/workflows/test-s3-upload.yml"
810
paths:
911
- '.github/workflows/check-certificates.ya?ml'
1012
pull_request:

.github/workflows/test-s3-upload.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)