Skip to content

Commit

Permalink
continuous release: revert wheel renaming due to install err
Browse files Browse the repository at this point in the history
  • Loading branch information
Titus-von-Koeller committed Sep 27, 2024
1 parent 3227cdd commit 0a2b539
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,40 +206,18 @@ jobs:
needs:
- build-wheels
steps:
- name: Download artifacts to tmp directory
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: tmp/
path: artifacts/
pattern: "bdist_wheel_*"
merge-multiple: true
- name: Inspect tmp directory after downloading artifacts
run: ls -alFR tmp/
- name: Move and rename wheel files
run: |
mkdir -p wheels/
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do
wheel_filename=$(basename "$wheel")
if [[ $wheel_filename == *linux*x86_64* ]]; then
mv "$wheel" wheels/bnb-linux-x86_64.whl
elif [[ $wheel_filename == *linux*aarch64* ]]; then
mv "$wheel" wheels/bnb-linux-aarch64.whl
elif [[ $wheel_filename == *macosx*x86_64* ]]; then
mv "$wheel" wheels/bnb-macos-x86_64.whl
elif [[ $wheel_filename == *macosx*arm64* ]]; then
mv "$wheel" wheels/bnb-macos-arm64.whl
elif [[ $wheel_filename == *win*amd64* ]]; then
mv "$wheel" wheels/bnb-windows-x86_64.whl
else
echo "Unknown wheel format: $wheel_filename"
exit 1
fi
done
- name: Inspect wheels directory after renaming files
run: ls -alFR wheels/
- name: Inspect artifacts directory after downloading
run: ls -alFR artifacts/
- name: Create release and upload artifacts
uses: softprops/[email protected]
with:
files: wheels/*.whl
files: artifacts/**/*.whl
prerelease: true
name: Multi-Backend Preview
tag_name: continuous-release-preview
Expand Down

0 comments on commit 0a2b539

Please sign in to comment.