f99010fae1
Desktop Artifacts / Desktop Build (Linux) (push) Waiting to run
Desktop Artifacts / Desktop Build (Windows) (push) Waiting to run
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Waiting to run
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Waiting to run
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Waiting to run
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
69 lines
1.6 KiB
Bash
Executable File
69 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
VERSION="${1:-}"
|
|
EXTRA_INSTRUCTIONS="${2:-}"
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
echo "Usage: $0 <version> [extra_instructions]"
|
|
echo "Example: $0 0.2.0"
|
|
echo "Example: $0 0.2.0 \"Focus on analytics improvements\""
|
|
exit 1
|
|
fi
|
|
|
|
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
echo "Error: Version must be in format X.Y.Z (e.g., 0.2.0)"
|
|
exit 1
|
|
fi
|
|
|
|
TAG="v$VERSION"
|
|
|
|
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
|
echo "Error: Tag $TAG already exists"
|
|
exit 1
|
|
fi
|
|
|
|
if ! git diff-index --quiet HEAD --; then
|
|
echo "Error: You have uncommitted changes. Please commit or stash them first."
|
|
exit 1
|
|
fi
|
|
|
|
# Generate changelog
|
|
CHANGELOG_FILE=$(mktemp)
|
|
trap 'rm -f "$CHANGELOG_FILE"' EXIT
|
|
|
|
"$SCRIPT_DIR/changelog.sh" "$VERSION" "-" "$EXTRA_INSTRUCTIONS" > "$CHANGELOG_FILE"
|
|
|
|
echo ""
|
|
echo "=========================================="
|
|
echo "PROPOSED CHANGELOG FOR $TAG"
|
|
echo "=========================================="
|
|
cat "$CHANGELOG_FILE"
|
|
echo ""
|
|
echo "=========================================="
|
|
echo ""
|
|
|
|
read -p "Accept this changelog and create release $TAG? [y/N] " -n 1 -r
|
|
echo ""
|
|
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
echo "Release cancelled."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Creating tag $TAG..."
|
|
git tag -a "$TAG" -m "Release $VERSION
|
|
|
|
$(cat $CHANGELOG_FILE)"
|
|
|
|
echo "Pushing tag to origin..."
|
|
git push origin "$TAG"
|
|
|
|
echo ""
|
|
echo "Release $TAG created and pushed successfully!"
|
|
echo "GitHub Actions will build and publish the release."
|
|
echo ""
|
|
echo "GitHub release URL: https://github.com/kenn-io/agentsview/releases/tag/$TAG"
|