Skip to content

Commit 313513c

Browse files
temp: test s3 upload
1 parent a95600d commit 313513c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: .github/workflows/test-s3-upload.yml

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

0 commit comments

Comments
 (0)