viossa.net/stage.sh
nikomiko 13e98087c9 fix: scripts
remove 'or' clauses as they seem to cause the job to be labeled as success even when it's a failure
2026-02-08 08:15:23 -05:00

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