Skip to content

Commit 88578af

Browse files
committed
Create script to create release tarball
1 parent aaa1dbe commit 88578af

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# Check if version parameter is provided
4+
if [ -z "$1" ]; then
5+
echo "Usage: $0 <version>"
6+
echo "Example: $0 1.0.0"
7+
exit 1
8+
fi
9+
10+
version="$1"
11+
tarball_name="openapi-generator-bazel-v${version}.tar.gz"
12+
13+
# Create tarball excluding git files, bazel-* symlinks, and other unwanted files
14+
tar -czf "$tarball_name" \
15+
--exclude='.git*' \
16+
--exclude='bazel-*' \
17+
--exclude='*.tar.gz' \
18+
.
19+
20+
echo "Created tarball: $tarball_name"

0 commit comments

Comments
 (0)