Skip to content

Commit 0d043f0

Browse files
temp: test s3 upload
1 parent a95600d commit 0d043f0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test S3 Upload
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
sync-to-s3:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
id-token: write
12+
13+
steps:
14+
- name: Configure AWS Credentials
15+
uses: aws-actions/configure-aws-credentials@v4
16+
with:
17+
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
18+
aws-region: us-east-1
19+
20+
- name: Create test folder and files
21+
run: |
22+
mkdir -p test-folder
23+
echo "File 1 content" > test-folder/file1.txt
24+
echo "File 2 content" > test-folder/file2.txt
25+
echo "File 3 content" > test-folder/file3.txt
26+
27+
- name: Sync folder to S3
28+
run: aws s3 sync test-folder s3://${{ secrets.BUCKET_NAME }}/test-folder

0 commit comments

Comments
 (0)