Skip to content

Commit

Permalink
Merge pull request #118 from mattip/upload3
Browse files Browse the repository at this point in the history
fix uploading
  • Loading branch information
mattip authored Sep 27, 2023
2 parents 729f4a5 + 2514655 commit b7c93e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ jobs:
activate-environment: upload

- name: Upload
# see https://github.com/marketplace/actions/setup-miniconda for why
# `-el {0}` is required.
shell: bash -el {0}
env:
ANACONDA_SCIENTIFIC_PYTHON_UPLOAD: ${{ secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ jobs:
activate-environment: upload

- name: Upload
shell: bash
# see https://github.com/marketplace/actions/setup-miniconda for why
# `-el {0}` is required.
shell: bash -el {0}
env:
ANACONDA_SCIENTIFIC_PYTHON_UPLOAD: ${{ secrets.ANACONDA_SCIENTIFIC_PYTHON_UPLOAD }}
run: |
Expand Down
5 changes: 3 additions & 2 deletions tools/upload_to_anaconda_staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Upload tar.gz and wheels to ananconda.org

upload_wheels() {
set -e
if [[ "$(uname -s)" == CYGWIN* ]]; then
our_wd=$(cygpath "$START_DIR")
cd $our_wd
Expand All @@ -17,12 +16,14 @@ upload_wheels() {
else
echo "Uploading OpenBLAS $VERSION to anaconda.org staging:"

tarballs=$(ls -d builds/openblas*.zip libs/openblas*.tar.gz 2>/dev/null)
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
--no-progress --force -u scientific-python-nightly-wheels \
-t file -p "openblas-libs" -v "$VERSION" \
-d "OpenBLAS for multibuild wheels" \
-s "OpenBLAS for multibuild wheels" \
builds/openblas*.zip libs/openblas*.tar.gz
${tarballs}


anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
--no-progress --force -u scientific-python-nightly-wheels \
Expand Down

0 comments on commit b7c93e7

Please sign in to comment.