| #!/usr/bin/env bash |
| set -euo pipefail |
|
|
| |
| |
| |
| |
| usage() { |
| echo "Usage: $0 <stage: core|framework|plugins> [version]" >&2 |
| echo "Examples:" >&2 |
| echo " $0 core v1.2.3" >&2 |
| echo " $0 framework v1.2.3" >&2 |
| echo " $0 plugins" >&2 |
| } |
| if [[ $# -lt 1 ]]; then |
| usage |
| exit 2 |
| fi |
| STAGE="${1:-}" |
| VERSION="${2:-}" |
|
|
| |
| case "$STAGE" in |
| core|framework|plugins) |
| ;; |
| *) |
| echo "β Unknown stage: $STAGE" >&2 |
| usage |
| exit 1 |
| ;; |
| esac |
|
|
| |
| if [[ "$STAGE" != "plugins" && -z "${VERSION:-}" ]]; then |
| echo "β VERSION is required for stage '$STAGE'." >&2 |
| usage |
| exit 2 |
| fi |
|
|
| case "$STAGE" in |
| "core") |
| echo "π§ Core v$VERSION released!" |
| echo "" |
| echo "π Dependency Flow Status:" |
| echo "β
Core: v$VERSION (just released)" |
| echo "β Framework: Check if update needed" |
| echo "β Plugins: Will check after framework" |
| echo "β Bifrost HTTP: Will check after plugins" |
| echo "" |
| echo "π Next Step: Manually trigger Framework Release if needed" |
| ;; |
|
|
| "framework") |
| echo "π¦ Framework v$VERSION released!" |
| echo "" |
| echo "π Dependency Flow Status:" |
| echo "β
Core: (already updated)" |
| echo "β
Framework: v$VERSION (just released)" |
| echo "β Plugins: Check if any need updates" |
| echo "β Bifrost HTTP: Will check after plugins" |
| echo "" |
| echo "π Next Step: Check Plugins Release workflow" |
| ;; |
|
|
| "plugins") |
| echo "π Plugins ${VERSION:+v$VERSION }released!" |
| echo "" |
| echo "π Dependency Flow Status:" |
| echo "β
Core: (already updated)" |
| echo "β
Framework: (already updated)" |
| echo "β
Plugins: (just released)" |
| echo "β Bifrost HTTP: Check if update needed" |
| echo "" |
| echo "π Next Step: Manually trigger Bifrost HTTP Release if needed" |
| ;; |
|
|
| *) |
| echo "β Unknown stage: $STAGE" |
| exit 1 |
| ;; |
| esac |
|
|