Files
pcli/release.sh
T
Steve Cliff b07572fed5 Released v1
2026-02-12 10:37:19 +00:00

22 lines
600 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Build the project first
echo "Building project..."
./build.sh
# Get version from git tag or use a default
VERSION=$(git describe --tags --exact-match 2>/dev/null || echo "v$(date +%Y%m%d-%H%M%S)")
echo "Creating release: $VERSION"
# Create the release using tea CLI
# This assumes you have tea configured and authenticated
tea release create \
--title "Release $VERSION" \
--note "Automated release for version $VERSION" \
--tag "$VERSION" \
--target "$(git rev-parse HEAD)" \
--asset pcli
echo "Release $VERSION created successfully!"