We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd6d76 commit bfdab72Copy full SHA for bfdab72
python/pre-publish/action.yml
@@ -53,8 +53,10 @@ runs:
53
if [ -z "$VERSION" ]; then
54
# Extract the version from the sdist name, which must be of the from
55
# {name}-{version}.tar.gz according to PEP 625.
56
+ python -m build --sdist .
57
VERSION=$(ls dist/*.tar.gz | rev | cut -d'-' -f 1 | rev | sed 's/.tar.gz//g')
58
echo "VERSION=$VERSION" >> $GITHUB_ENV
59
+ rm -rf dist
60
else
61
62
fi
0 commit comments