25 lines
713 B
Bash
Executable File
25 lines
713 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-linux-amd64 \
|
|
--asset pcli-darwin-amd64 \
|
|
--asset pcli-darwin-arm64 \
|
|
--asset pcli-windows-amd64.exe
|
|
|
|
echo "Release $VERSION created successfully!"
|