mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 09:51:39 +00:00
refactor: Deployment setup
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
go install github.com/cosmos/gex@latest
|
||||
go install github.com/apple/pkl-go/cmd/pkl-gen-go@latest
|
||||
|
||||
rm -rf ~/.ipfs
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
ROOT_DIR=$(git rev-parse --show-toplevel)
|
||||
STYLES_DIR=$ROOT_DIR/pkg/webapp
|
||||
DIST_DIR=$STYLES_DIR/dist
|
||||
OUT_DIR=$ROOT_DIR/static/css
|
||||
|
||||
cd $STYLES_DIR
|
||||
bun install
|
||||
bun run build
|
||||
mkdir -p $OUT_DIR
|
||||
mv $DIST_DIR/styles.css $OUT_DIR/styles.css
|
||||
rm -rf $DIST_DIR
|
||||
rm -rf $STYLES_DIR/node_modules
|
||||
|
||||
@@ -12,3 +12,6 @@ for dir in .out/*/; do
|
||||
done
|
||||
|
||||
rm -rf .out
|
||||
|
||||
rclone copy $ROOT_DIR/static "r2:nebula"
|
||||
rm -rf $ROOT_DIR/static
|
||||
Reference in New Issue
Block a user