refactor: Deployment setup

This commit is contained in:
Prad Nukala
2024-11-26 11:44:17 -05:00
parent b9b868d55a
commit e89bbb05b1
11 changed files with 106 additions and 3545 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
ROOT_DIR=$(git rev-parse --show-toplevel)
bunx pkl project package $ROOT_DIR/pkl/*/
for dir in .out/*/; do
folder=$(basename "$dir")
rclone copy "$dir" "r2:pkljar/$folder"
done
rm -rf .out
rclone copy $ROOT_DIR/static "r2:nebula"
rm -rf $ROOT_DIR/static