File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 5353 - name : Publish to PyPI
5454 run : |
5555 shopt -s extglob # Enable extended globbing
56- EXCLUDE_PATTERN="@($(echo $EXCLUDE_PACKAGE_FOLDERS | sed 's/ /|/g' | sed 's/\([^ ]*\)/microsoft_teams_\1*/g'))"
57- echo "Excluding pattern: ${EXCLUDE_PATTERN}"
58- echo "Publishing files:"
59- ls -1 dist/!(${EXCLUDE_PATTERN})
60- uv publish --trusted-publishing always dist/!(${EXCLUDE_PATTERN})
56+ if [ -z "$EXCLUDE_PACKAGE_FOLDERS" ]; then
57+ echo "No packages to exclude"
58+ echo "Publishing files:"
59+ ls -1 dist/*
60+ uv publish --trusted-publishing always dist/*
61+ else
62+ EXCLUDE_PATTERN="@($(echo $EXCLUDE_PACKAGE_FOLDERS | sed 's/ /|/g' | sed 's/\([^ ]*\)/microsoft_teams_\1*/g'))"
63+ echo "Excluding pattern: ${EXCLUDE_PATTERN}"
64+ echo "Publishing files:"
65+ ls -1 dist/!(${EXCLUDE_PATTERN})
66+ uv publish --trusted-publishing always dist/!(${EXCLUDE_PATTERN})
67+ fi
You can’t perform that action at this time.
0 commit comments