Skip to content

Commit 2823cb6

Browse files
committed
Fix workflow
1 parent 6ba7c9a commit 2823cb6

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ jobs:
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

0 commit comments

Comments
 (0)