Skip to content

Commit 370ab68

Browse files
Simplify release tarball management
- Changed to non-versioned tarball name (server-hub.tar.gz) - Store tarball in latest-release/ directory (committed to repo) - Removed .gitignore to track tarball in git - Simplified script output
1 parent 0f99f34 commit 370ab68

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

create-release-tarball.sh

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,21 @@
55

66
set -euo pipefail
77

8-
# Get version from project_version.json
9-
VERSION=$(grep -o '"message": *"[^"]*"' project_version.json | cut -d'"' -f4)
8+
# Create latest-release directory if it doesn't exist
9+
mkdir -p latest-release
1010

11-
if [[ -z "$VERSION" ]]; then
12-
echo "Error: Could not extract version from project_version.json"
13-
exit 1
14-
fi
15-
16-
TARBALL_NAME="server-hub-${VERSION}.tar.gz"
11+
TARBALL_NAME="latest-release/server-hub.tar.gz"
1712

1813
echo "Creating release tarball: $TARBALL_NAME"
1914

2015
# Create tarball excluding git files and other unnecessary files
2116
tar -czf "$TARBALL_NAME" \
2217
--exclude='.git' \
2318
--exclude='.github' \
24-
--exclude='*.tar.gz' \
2519
--exclude='.gitignore' \
20+
--exclude='latest-release' \
2621
--exclude='create-release-tarball.sh' \
2722
--transform "s,^,server-hub/," \
2823
*
2924

3025
echo "✅ Tarball created: $TARBALL_NAME"
31-
echo ""
32-
echo "Upload this to the GitHub release with:"
33-
echo " gh release upload ${VERSION} $TARBALL_NAME"
34-
echo ""
35-
echo "Or manually upload it to: https://github.com/Muthukumar-Subramaniam/server-hub/releases/tag/${VERSION}"

latest-release/server-hub.tar.gz

2.27 MB
Binary file not shown.

0 commit comments

Comments
 (0)