Website

deploy.sh at trunk
Login

File deploy.sh artifact e35eb07dd4 on branch trunk


#!/usr/bin/env bash
set -e

rm -r dist || true
rm -r .cache || true

npm ci
npm run build

# Upload to s3
pushd dist

aws s3 cp ./index.html s3://play-website \
    --cache-control max-age=600

aws s3 cp ./*.css s3://play-website \
    --cache-control immutable

aws s3 cp ./playground.html s3://play-website \
    --cache-control max-age=600

aws s3 cp ./*.js s3://play-website \
    --cache-control immutable

popd