Skip to content

Commit cfddaa5

Browse files
authored
Select manylinux2014 wheels for PyPI publish
Add step to select manylinux2014 wheels for publishing.
1 parent 8bfc369 commit cfddaa5

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/publish-pypi.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,23 @@ jobs:
9191
name: dist
9292
path: dist/
9393

94+
- name: Select manylinux2014 wheels
95+
shell: bash
96+
run: |
97+
mkdir -p publish-dist
98+
99+
find dist -type f \( \
100+
-name '*manylinux_2_17*.whl' -o \
101+
-name '*manylinux2014*.whl' \
102+
\) -exec cp -v {} publish-dist/ \;
103+
104+
# Fail instead of silently publishing nothing
105+
test -n "$(find publish-dist -maxdepth 1 -type f -name '*.whl' -print -quit)"
106+
107+
echo "Files to publish:"
108+
find publish-dist -maxdepth 1 -type f -name '*.whl' -print
109+
94110
- name: Publish
95111
uses: pypa/gh-action-pypi-publish@release/v1
96112
with:
97-
packages-dir: dist/
113+
packages-dir: publish-dist/

0 commit comments

Comments
 (0)