From 9feba8fa9f69e3654cc3c9b2c68d62a9cbdcdd32 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Fri, 14 Nov 2025 15:19:18 +0000 Subject: [PATCH] Try pwsh --- .github/workflows/build-wheels.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index dd26f3d..df0afb6 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -99,7 +99,8 @@ jobs: echo "TOKEN=$MULTIBUILD_WHEELS_STAGING_ACCESS" >> $GITHUB_ENV fi - - uses: conda-incubator/setup-miniconda@v3 + - name: Install conda + uses: conda-incubator/setup-miniconda@v3 with: # for installation of anaconda-client, required for upload to # anaconda.org @@ -111,9 +112,15 @@ jobs: miniforge-version: latest conda-remove-defaults: "true" + - name: Inspect conda + shell: pwsh + run: | + conda info + conda list + - name: Upload wheels if: ${{ always() }} - shell: bash + shell: pwsh run: | # trigger an upload to the shared ecosystem # infrastructure at: https://anaconda.org/scientific-python-nightly-wheels @@ -128,11 +135,12 @@ jobs: # multibuild-wheels-staging # generated at anaconda.org for scientific-python-nightly-wheels echo ${PWD} - if [ ${ANACONDA_UPLOAD} == true ]; then + if ( $env:ANACONDA_UPLOAD -eq "true") + { conda install -y anaconda-client - echo "Uploading to ${ANACONDA_ORG}" + echo "Uploading to $env:ANACONDA_ORG" # main branches of these two packages ls ./wheelhouse/*.whl - anaconda --verbose -t ${TOKEN} upload --force -u ${ANACONDA_ORG} ./wheelhouse/*.whl + anaconda --verbose -t $env:TOKEN upload --force -u $env:ANACONDA_ORG ./wheelhouse/*.whl echo "PyPI-style index: https://pypi.anaconda.org/$ANACONDA_ORG/simple" - fi + }