viossa.net/stage.sh
2026-02-05 22:15:23 -05:00

12 lines
No EOL
435 B
Bash
Executable file

#!/bin/bash
#
# Deployment script to be run remotely on push to master at https://github.com/ViossaDiskordServer/ViossaDotNet/
# Stages static content in a folder immediately for testing. run ./deploy.sh to convert main site.
# Usage: sh ./stage.sh SOURCE_DIR
#
SOURCE_DIR=$1
cd "$1" || { echo "Can't cd 😓 - code $?"; exit; }
git fetch --all && git branch "backup-$(date +'%s')" && git checkout -f origin/main && npx turbo build