From a2f156db69803ed1b141d0bf36d99a985c485fc3 Mon Sep 17 00:00:00 2001 From: Alex Groleau Date: Sat, 12 Apr 2025 16:58:16 -0400 Subject: [PATCH] upgraded flows --- flow | 33 +++++++++++++-------------------- flows | 2 +- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/flow b/flow index e2cfcc4..078a7cf 100755 --- a/flow +++ b/flow @@ -1,21 +1,13 @@ #!/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/release" -# Configuration +# Vars BUILD_DIRECTORY="web" - GITEA_ORGANIZATION="agreego" GITEA_REPOSITORY="site" -# Source the release script -source "flows/release" env() { # Check if GITEA_TOKEN is set @@ -32,29 +24,30 @@ 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}" } +usage() { + 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)." +} + 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;; + *) base "$@";; esac \ No newline at end of file diff --git a/flows b/flows index 5abd1b1..8431378 160000 --- a/flows +++ b/flows @@ -1 +1 @@ -Subproject commit 5abd1b1390ec9cf70dc5bb1fe42e849db2ba7aa2 +Subproject commit 84313780802fb5f99517a619a871a28daa8cb1c2