Skip to content

Commit 0a2b539

Browse files
continuous release: revert wheel renaming due to install err
1 parent 3227cdd commit 0a2b539

1 file changed

Lines changed: 5 additions & 27 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -206,40 +206,18 @@ jobs:
206206
needs:
207207
- build-wheels
208208
steps:
209-
- name: Download artifacts to tmp directory
209+
- name: Download artifacts
210210
uses: actions/download-artifact@v4
211211
with:
212-
path: tmp/
212+
path: artifacts/
213213
pattern: "bdist_wheel_*"
214214
merge-multiple: true
215-
- name: Inspect tmp directory after downloading artifacts
216-
run: ls -alFR tmp/
217-
- name: Move and rename wheel files
218-
run: |
219-
mkdir -p wheels/
220-
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do
221-
wheel_filename=$(basename "$wheel")
222-
if [[ $wheel_filename == *linux*x86_64* ]]; then
223-
mv "$wheel" wheels/bnb-linux-x86_64.whl
224-
elif [[ $wheel_filename == *linux*aarch64* ]]; then
225-
mv "$wheel" wheels/bnb-linux-aarch64.whl
226-
elif [[ $wheel_filename == *macosx*x86_64* ]]; then
227-
mv "$wheel" wheels/bnb-macos-x86_64.whl
228-
elif [[ $wheel_filename == *macosx*arm64* ]]; then
229-
mv "$wheel" wheels/bnb-macos-arm64.whl
230-
elif [[ $wheel_filename == *win*amd64* ]]; then
231-
mv "$wheel" wheels/bnb-windows-x86_64.whl
232-
else
233-
echo "Unknown wheel format: $wheel_filename"
234-
exit 1
235-
fi
236-
done
237-
- name: Inspect wheels directory after renaming files
238-
run: ls -alFR wheels/
215+
- name: Inspect artifacts directory after downloading
216+
run: ls -alFR artifacts/
239217
- name: Create release and upload artifacts
240218
uses: softprops/action-gh-release@v2.0.8
241219
with:
242-
files: wheels/*.whl
220+
files: artifacts/**/*.whl
243221
prerelease: true
244222
name: Multi-Backend Preview
245223
tag_name: continuous-release-preview

0 commit comments

Comments
 (0)