diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 00000000..a9d4eb47 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,19 @@ +#!/bin/bash +echo Build started +rm -rf dist +mkdir dist +cd dist +mkdir install +cd .. +npm install --prefix dist/install . +rm dist/dist.zip +cd dist/install/node_modules/alexa-plex/ +zip -r ../../../dist.zip * .env +echo files are ready +cd .. +cd .. +cd .. +cd .. +echo uploading zip file, please wait... +aws lambda update-function-code --zip-file fileb://dist/dist.zip --function-name alexa-plex +echo upload is done, exiting.