Skip to content

Commit

Permalink
ci: fix rsync and s3 sync commands for cdn deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 29, 2024
1 parent f783c2e commit 59cdc8f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/cdn_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ jobs:
mkdir -p dist
cd dist
rsync -av --exclude='.git' --exclude='node_modules' \
--include='components/*.js' \
--include='components/*.d.ts' \
--include='react/*.js' \
--include='react/*.d.ts' \
--include='theme/hot.css' \
--include='i18n/*.xliff' \
rsync -av \
--include='components/' \
--include='react/' \
--include='react/' \
--include='theme/' \
--include='i18n/' \
--exclude='*' \
"${{ github.workspace }}/" ./
Expand All @@ -86,11 +85,9 @@ jobs:
# Sync the necessary files to S3
aws s3 sync --delete \
--exclude "*" \
--include "components/*.js" \
--include "components/*.d.ts" \
--include "react/*.js" \
--include "react/*.d.ts" \
--include "theme/hot.css" \
--include "i18n/*.xliff" \
--include "components/*" \
--include "react/*" \
--include "theme/*" \
--include "i18n/*" \
${{ github.workspace }} \
s3://${{ vars.S3_BUCKET_NAME }}/${{ env.S3_PATH }}/

0 comments on commit 59cdc8f

Please sign in to comment.