Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit ba65813

Browse files
authored
Merge pull request #17 from wleepang/master
use sync --delete for deploy
2 parents 3c94143 + 2ebbd97 commit ba65813

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_scripts/deploy.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ mkdocs build
77

88

99
echo "publishing artifacts:"
10-
aws s3 cp \
10+
aws s3 sync \
1111
--profile asset-publisher \
1212
--acl public-read \
13-
--recursive \
13+
--delete \
1414
./artifacts \
1515
s3://aws-genomics-workflows/artifacts
1616

1717

1818
echo "publishing templates:"
19-
aws s3 cp \
19+
aws s3 sync \
2020
--profile asset-publisher \
2121
--acl public-read \
22-
--recursive \
22+
--delete \
2323
--metadata commit=$(git rev-parse HEAD) \
2424
./src/templates \
2525
s3://aws-genomics-workflows/templates
2626

2727

2828
echo "publishing site"
29-
aws s3 cp \
29+
aws s3 sync \
3030
--acl public-read \
31-
--recursive \
31+
--delete \
3232
./site \
3333
s3://docs.opendata.aws/genomics-workflows
3434

0 commit comments

Comments
 (0)