breakout71/deploy.sh

27 lines
814 B
Bash
Raw Normal View History

#!/bin/bash
2025-03-13 08:55:25 +01:00
set -e
set -x
2025-03-14 22:21:47 +01:00
versionCode=$(($(date +%s) / 60))
bash ./build.sh $versionCode
# Create a release commit and tag
git add .
git commit -m "Build $versionCode"
git tag -a $versionCode -m $versionCode
git push
2025-02-15 20:47:26 +01:00
# upload to breakout.lecaro.me
DOMAIN="breakout.lecaro.me"
2025-03-05 22:51:19 +01:00
PUBLIC_CONTENT="./dist/*"
2025-03-05 22:10:17 +01:00
ssh staging "mkdir -p /opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN"
rsync -avz --delete --delete-excluded --exclude="*.sh" --exclude="node_modules" --exclude="android" --exclude=".*" $PUBLIC_CONTENT staging:/opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN
2025-03-05 22:46:37 +01:00
# upload to itch.io , upload the index file directly
butler push "./dist/index.html" renanlecaro/breakout71:latest --userversion $versionCode
2025-03-14 22:21:47 +01:00
butler push "./dist/index.html" renanlecaro/breakout71:offline --userversion $versionCode