2025-02-15 19:21:00 +01:00
|
|
|
#!/bin/bash
|
2025-03-13 08:55:25 +01:00
|
|
|
|
2025-03-15 10:34:01 +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
|
|
|
|
2025-03-05 19:50:17 +01:00
|
|
|
# upload to breakout.lecaro.me
|
2025-02-15 19:21:00 +01:00
|
|
|
DOMAIN="breakout.lecaro.me"
|
2025-03-05 22:51:19 +01:00
|
|
|
PUBLIC_CONTENT="./dist/*"
|
2025-03-05 22:10:17 +01:00
|
|
|
|
2025-02-15 19:21:00 +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
|
|
|
|
|