Skip to content

Commit

Permalink
Refines Github deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrkupton committed May 2, 2024
1 parent ff9c7b7 commit d76868b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_to_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
echo "BUCKET_NAME=patterns-uat.boston.gov" >> "${GITHUB_ENV}"
fi
if [[ ${{ vars.S3_DRY_RUN }} == 1 ]];then
echo "S3_DEST_DIR='/DRY_RUN/'" >> "${GITHUB_ENV}"
echo "S3_DEST_DIR='DRY_RUN/'" >> "${GITHUB_ENV}"
echo "SOURCE_DIR='public/legacy'" >> "${GITHUB_ENV}"
else
echo "S3_DEST_DIR='/'" >> "${GITHUB_ENV}"
echo "S3_DEST_DIR=''" >> "${GITHUB_ENV}"
echo "SOURCE_DIR=public" >> "${GITHUB_ENV}"
fi
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
id: Deploy-To-Amazon
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
args: --acl public-read --follow-symlinks # --delete
env:
AWS_S3_BUCKET: ${{ env.BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
Expand Down

0 comments on commit d76868b

Please sign in to comment.