Skip to content

Commit 0fee18c

Browse files
committed
ci: changes to run s3 sync pipeline
1 parent 16ed90e commit 0fee18c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/main.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
env:
9+
AWS_BUCKET_NAME: ftr-rocketseat-upload-widget-web-static
10+
SOURCE_FOLDER: ./dist
11+
812
jobs:
913
deploy:
1014
runs-on: ubuntu-latest
@@ -38,3 +42,8 @@ jobs:
3842
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
3943
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4044
aws-region: ${{ vars.AWS_REGION }}
45+
46+
- name: Config AWS S3 sync
47+
id: config-aws-s2-sync
48+
run: |
49+
aws s3 sync ${{ env.SOURCE_FOLDER }} s3://${{ env.AWS_BUCKET_NAME }} --delete

src/components/upload-widget-title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function UploadWidgetTitle() {
1515
</span>
1616
)
1717
: (
18-
<span>Upload files</span>
18+
<span>Upload files...</span>
1919
)
2020
}
2121
</div>

0 commit comments

Comments
 (0)