We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7151f83 commit 62a4ccdCopy full SHA for 62a4ccd
.github/workflows/release.yml
@@ -30,11 +30,13 @@ jobs:
30
- name: Publish to PyPI
31
run: |
32
# Get list of changed targets that are publishable
33
- changed_targets=$(pants --changed-since=origin/main filter :: | grep -v "^$")
+ changed_targets=$(pants --changed-since=origin/main list | awk -F/ '{print $1}' | sort -u)
34
35
if [ -n "$changed_targets" ]; then
36
echo "Publishing changed targets: $changed_targets"
37
- pants publish $changed_targets
+ for target in $changed_targets; do
38
+ pants publish $target::
39
+ done
40
else
41
echo "No changes detected, skipping publish"
42
fi
0 commit comments