From c61111822cbc35667dd7c63ec64bb7d2ef077c9c Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 19 Nov 2022 15:10:11 +0800 Subject: [PATCH] change from sync to cp --- .github/workflows/staging.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 371c807..7b7cd66 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -97,10 +97,11 @@ jobs: BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$') echo "bucket=$BUCKET" >> $GITHUB_OUTPUT - - name: sync package images from prod to preview bucket + - name: cp package images from prod to preview bucket run: | - aws s3 sync s3://www.tea.xyz/Images/packages \ - s3://$NEW_BUCKET/Images/packages + aws s3 cp s3://www.tea.xyz/Images/packages \ + s3://$NEW_BUCKET/Images/packages \ + --recursive env: NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}