8 Commits
1.0.2 ... 1.0.6

Author SHA1 Message Date
6fd3e65cc1 version: 1.0.6 2025-04-13 23:01:30 -04:00
ba36d4d72b upgraded flow 2025-04-13 22:02:15 -04:00
ed4b625c48 version: 1.0.5 2025-04-12 16:58:22 -04:00
a2f156db69 upgraded flows 2025-04-12 16:58:16 -04:00
fecf5e589f version: 1.0.4 2025-03-26 13:55:20 -04:00
510a52d492 updated flow 2025-03-26 13:55:12 -04:00
468669f0de version: 1.0.3 2025-03-26 12:54:47 -04:00
7f2d3855e0 added flow 2025-03-26 12:26:25 -04:00
4 changed files with 35 additions and 34 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "flows"]
path = flows
url = git@gitea-ssh.thoughtpatterns.ai:cellular/flows.git

View File

@ -1,26 +1,14 @@
#!/bin/bash
# Colors for that visual bass drop 🎵
RED='\033[31m'
GREEN='\033[32m'
YELLOW='\033[33m'
BLUE='\033[34m'
MAGENTA='\033[35m'
CYAN='\033[36m'
RESET='\033[0m'
# Flows
source ./flows/base
source ./flows/git
source ./flows/packaging
# Configuration
BUILD_DIRECTORY="build"
# Source the release script
# Vars
BUILD_DIRECTORY="web"
GITEA_ORGANIZATION="agreego"
GITEA_REPOSITORY="site"
RELEASE_SCRIPT="../../thoughtpatterns/workspace/release.sh"
if [ ! -f "$RELEASE_SCRIPT" ]; then
echo -e "❌ ${RED}Release script not found at $RELEASE_SCRIPT${RESET}" >&2
exit 1
fi
source "$RELEASE_SCRIPT"
env() {
# Check if GITEA_TOKEN is set
@ -37,29 +25,38 @@ env() {
echo -e "💰 ${GREEN}Environment variables set${RESET}"
}
build() {
# Create build directory if it doesn't exist
mkdir -p "$PACKAGE_DIRECTORY"
# Get version
local version=$(get-version)
echo -e "📦 ${CYAN}Building site version ${GREEN}v$version${RESET}..."
# Create the tarball
tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" .
echo -e "✨ ${GREEN}Build complete${RESET}"
}
site-usage() {
echo -e " ${CYAN}Site Commands:${RESET}"
echo -e " prepare Check required OS dependencies (if any are defined)."
echo -e " env Load environment variables from .env file."
echo -e " build Build the site (requires env)."
echo -e " tag Tag the build (requires build)."
echo -e " package Package the build (requires build)."
echo -e " release Release the build (requires package)."
}
site-flow() {
case "$1" in
env) env;;
build) env; build;;
tag) env; tag;;
package) env; package;;
release) env; release;;
*)
echo "Usage: $0 {env|build|tag|package|release}"
exit 1;;
prepare) base prepare; return 0;;
env) env; return 0;;
build) env; build; return 0;;
tag) env; tag; return 0;;
package) env; package; return 0;;
release) env; release; return 0;;
*) return 1 ;;
esac
}
register-flow "site-flow" "site-usage"
dispatch "$@"

1
flows Submodule

Submodule flows added at 2487aa6a25

View File

@ -1 +1 @@
1.0.2
1.0.6