Skip to content

Commit 78767e2

Browse files
committed
review feedback
1 parent 2db3215 commit 78767e2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎scripts/cd.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ for file in $(find . -print | sed 's|^./||' | grep -E "(^services/[^/]+/pyprojec
1313
if git rev-parse --verify $expected_tag^{tag} &> /dev/null; then
1414
echo "Tag '$expected_tag' already exists."
1515
else
16-
# Tag doesn't exist. Create tag and build/publish to PyPi
17-
echo "Tag '$expected_tag' does not exist. Creating new tag to trigger release."
18-
git tag -a $expected_tag -m "Release $version"
19-
git push origin tag $expected_tag
16+
# Tag doesn't exist. Build/publish to PyPi, then create tag
17+
echo "Tag '$expected_tag' does not exist. Building and publishing release and creating new tag."
2018
cd $dirpath
2119
uv build
2220
uv publish --username="__token__" --password="$PYPI_TOKEN"
21+
git tag -a $expected_tag -m "Release $version"
22+
git push origin tag $expected_tag
2323
cd $GITHUB_WORKSPACE
2424
fi
2525
done

0 commit comments

Comments
 (0)