Skip to content

Commit

Permalink
keep applications/browser-extension directories out of the zipped fil…
Browse files Browse the repository at this point in the history
…e uploaded to AWS
  • Loading branch information
grahamlangford committed Nov 13, 2024
1 parent 77ca948 commit 0b37b34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/browser-extension/scripts/upload-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ BUILD_FILENAME="${BUILD_PATH##*/}"
: "${AWS_SECRET_ACCESS_KEY?Need to set AWS_SECRET_ACCESS_KEY}"
: "${AWS_DEFAULT_REGION?Need to set AWS_DEFAULT_REGION}"

zip -r "$BUILD_FILENAME" applications/browser-extension/dist -x '*.map'
cd applications/browser-extension
zip -r "../../$BUILD_FILENAME" dist -x '*.map'
cd -

aws s3 cp "$BUILD_FILENAME" "s3://pixiebrix-extension-builds/$BUILD_PATH" --no-progress

0 comments on commit 0b37b34

Please sign in to comment.