bevy-jam-6/deploy.sh
RobertoMaurizzi 99bbb1074e
Some checks are pending
CI / Format (push) Waiting to run
CI / Docs (push) Waiting to run
CI / Clippy lints (push) Waiting to run
CI / Bevy lints (push) Waiting to run
CI / Tests (push) Waiting to run
CI / Check web (push) Waiting to run
poor man's deploy script for my server
2025-07-17 21:12:34 +08:00

15 lines
713 B
Bash
Executable file

set -x
export BUILD_DIR="target/bevy_web/web-release/"
export NAME="chain-reaction-collapse"
export HOST="root@antares.digitalpha.net"
export TARGET_DIR="/var/www/"
# trunk build --release --no-default-features
# bevy build --yes --release web --bundle
# for f in "${BUILD_DIR}/build/"*.wasm; do brotli -c "$f" "$f".br; done
ssh $HOST -C "rm ${TARGET_DIR}/${NAME} -r"
ssh $HOST -C "mkdir -p ${TARGET_DIR}/${NAME}"
scp -r "${BUILD_DIR}/${NAME}" "${HOST}":"${TARGET_DIR}"/
# scp ${BUILD_DIR}/index.html "${HOST}":"${TARGET_DIR}"/
# scp -r ${BUILD_DIR}/assets "${HOST}":"${TARGET_DIR}"/
# scp ${BUILD_DIR}/build/*.js "${HOST}":"${TARGET_DIR}"/build/
# scp ${BUILD_DIR}/build/*.wasm* "${HOST}":"${TARGET_DIR}"/build/