-
Notifications
You must be signed in to change notification settings - Fork 33
30 lines (29 loc) · 1.01 KB
/
uploadToS3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Upload Examples to Amazon S3
on:
push:
branches:
- master
jobs:
upload:
name: Upload examples to Amazon S3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Upload to Amazon S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 sync . s3://${{ secrets.WEBINY_EXAMPLES_S3_BUCKET_NAME }} --delete --region ${{ secrets.AWS_REGION }} \
--exclude ".*" \
--exclude "blog*" \
--exclude "create-custom-application*" \
--exclude "headlesscms-*" \
--exclude "integrate-tailwind-css" \
--exclude "node_modules*" \
--exclude "package.json" \
--exclude "README.md" \
--exclude "storage-backup*" \
--exclude "use-existing-amazon-vpc-advanced-usage*" \
--exclude "webiny-v4*" \
--exclude "yarn.lock"