Skip to content

Commit f7256f5

Browse files
authored
Fix build script to not release stable pkgs (open-telemetry#743)
1 parent b5d3074 commit f7256f5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/build.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ DISTDIR=dist
3131
(
3232
cd $DISTDIR
3333
for x in *.tar.gz ; do
34-
if [[ $x =~ ^opentelemetry-.*-1\.[0-9]+.*\.tar\.gz$ ]]; then
35-
echo "Skipping $x because it is >=1.0 and should be released using a tag."
36-
continue
34+
# NOTE: We filter beta vs 1.0 package at this point because we can read the
35+
# version directly from the .tar.gz file.
36+
if (echo "$x" | grep -Eq ^opentelemetry-.*-0\..*\.tar\.gz$); then
37+
pip wheel --no-deps $x
38+
else
39+
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."
40+
rm $x
3741
fi
38-
pip wheel --no-deps $x
3942
done
4043
)
4144
)

0 commit comments

Comments
 (0)