Skip to content

Commit

Permalink
Deploy to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Aug 28, 2020
1 parent d5a441b commit b200921
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
build:
rm -rf lib/ dist/
npm pack
rm lift-*.tgz
rm lib/*.d.ts
rm lib/*/*.d.ts
rm -f lift-*.tgz
rm -f lib/*.d.ts
rm -f lib/*/*.d.ts
npm ci --only=prod
pkg . --out-path dist --targets node10-macos-x64
npm ci
rm /usr/local/bin/lift
mv cp dist/lift /usr/local/bin/lift
rm -f /usr/local/bin/lift
cp dist/lift /usr/local/bin/lift
aws s3 cp dist/lift s3://lift-releases/$$(jq '.version' package.json --raw-output)/lift
aws s3 cp s3://lift-releases/$$(jq '.version' package.json --raw-output)/lift s3://lift-releases/latest/lift

0 comments on commit b200921

Please sign in to comment.