viossa.net/stage.sh
2026-02-09 20:30:40 -05:00

16 lines
No EOL
470 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')"
npm i -g pnpm && pnpm setup && pnpm i -g turbo typescript \
&& git checkout -f origin/main \
&& pnpm i && turbo build