From 2cc993e29fa51b82d3173cc6f79fe0b1553addec Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Tue, 31 May 2022 16:16:03 +0300 Subject: [PATCH] chore: fix publish-cdn script (#2031) --- scripts/publish-cdn.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/publish-cdn.sh b/scripts/publish-cdn.sh index af930849..db5b0dcd 100755 --- a/scripts/publish-cdn.sh +++ b/scripts/publish-cdn.sh @@ -8,11 +8,11 @@ VERSION=$(node scripts/version.js) VERSION_TAG=v${VERSION:0:1}.x copy_to_s3 () { - aws s3 cp bundles "s3://redocly-cdn/redoc/$1/bundles" --recursive "$2" - aws s3 cp CHANGELOG.md "s3://redocly-cdn/redoc/$1/CHANGELOG.md" "$2" - aws s3 cp LICENSE "s3://redocly-cdn/redoc/$1/LICENSE" "$2" - aws s3 cp package.json "s3://redocly-cdn/redoc/$1/package.json" "$2" - aws s3 cp README.md "s3://redocly-cdn/redoc/$1/README.md" "$2" + aws s3 cp bundles "s3://redocly-cdn/redoc/$1/bundles" --recursive + aws s3 cp CHANGELOG.md "s3://redocly-cdn/redoc/$1/CHANGELOG.md" + aws s3 cp LICENSE "s3://redocly-cdn/redoc/$1/LICENSE" + aws s3 cp package.json "s3://redocly-cdn/redoc/$1/package.json" + aws s3 cp README.md "s3://redocly-cdn/redoc/$1/README.md" } if aws s3 ls "redocly-cdn/redoc/v$VERSION/" "$@"; then @@ -22,7 +22,7 @@ else echo Releasing $VERSION echo Uploading to S3 $VERSION - copy_to_s3 "v$VERSION" $@ + copy_to_s3 "v$VERSION" echo Uploading to S3 $VERSION_TAG copy_to_s3 "$VERSION_TAG" $@