Skip to content

Commit bfdab72

Browse files
committed
cleanup
1 parent bdd6d76 commit bfdab72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/pre-publish/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ runs:
5353
if [ -z "$VERSION" ]; then
5454
# Extract the version from the sdist name, which must be of the from
5555
# {name}-{version}.tar.gz according to PEP 625.
56+
python -m build --sdist .
5657
VERSION=$(ls dist/*.tar.gz | rev | cut -d'-' -f 1 | rev | sed 's/.tar.gz//g')
5758
echo "VERSION=$VERSION" >> $GITHUB_ENV
59+
rm -rf dist
5860
else
5961
echo "VERSION=$VERSION" >> $GITHUB_ENV
6062
fi

0 commit comments

Comments
 (0)