Skip to content

Commit

Permalink
make upload fail when missing wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Jan 10, 2025
1 parent 133a0e8 commit e670207
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ env:
- name: Upload wheel to Anaconda scientific-python
shell: bash
run: |
# check if completion actually expands to wheel files
# to prevent empty dirs from failing silently
if ! compgen -G "{{ pattern }}" > /dev/null; then
echo "No wheel files found!"
exit 1
fi
python3 -m pip install git+https://github.com/Anaconda-Platform/[email protected]
anaconda -t ${CROSSBOW_SCIENTIFIC_PYTHON_UPLOAD_TOKEN} upload --force -u scientific-python-nightly-wheels --label main {{ pattern }}
env:
Expand Down

0 comments on commit e670207

Please sign in to comment.