viossa.net/stage.sh
2026-05-04 00:53:01 -04:00

15 lines
406 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 "$SOURCE_DIR"
git fetch --all && git branch "backup-$(date +'%s')"
git checkout -f origin/main \
&& pnpm i && turbo build