8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95600d commit 0d043f0Copy full SHA for 0d043f0
.github/workflows/test-s3-upload.yml
@@ -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