Added staging deploy

This commit is contained in:
Renan LE CARO 2025-03-14 22:14:57 +01:00
parent 934670b2a7
commit c8c12fdd29
14 changed files with 242 additions and 164 deletions

13
deploy_staging.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
bash ./build.sh
# upload to breakout-v3-staging.lecaro.me
DOMAIN="breakout-v3-staging.lecaro.me"
PUBLIC_CONTENT="./dist/*"
ssh staging "mkdir -p /opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN"
rsync -avz --delete $PUBLIC_CONTENT staging:/opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN
# upload to itch.io , upload the index file directly
butler push "./dist/index.html" renanlecaro/breakout71:nightly --userversion $versionCode