diff options
author | Andrew Nelson <andyfaff@gmail.com> | 2023-01-30 15:38:36 +1100 |
---|---|---|
committer | Andrew Nelson <andyfaff@gmail.com> | 2023-01-30 15:38:36 +1100 |
commit | 5aa99fb05d5e9845f20b03bd9d5698fb8c56f239 (patch) | |
tree | 7029a571b88ae5b19e06a9db7a55d109db1e0100 /.github | |
parent | 2ce11750cbdba4d81fa8b3b8856c5b40aee75d45 (diff) | |
download | numpy-5aa99fb05d5e9845f20b03bd9d5698fb8c56f239.tar.gz |
BLD: use conda to install anaconda-client for upload [wheel build][skip azp][skip circle]
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/wheels.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 54ddf465d..661530fb3 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -122,6 +122,16 @@ jobs: name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }} path: ./wheelhouse/*.whl + - uses: conda-incubator/setup-miniconda@v2 + with: + # for installation of anaconda-client, required for upload to + # anaconda.org + # default (and activated) environment name is test + # Note that this step is *after* specific pythons have been used to + # build and test the wheel + auto-update-conda: true + python-version: "3.10" + - name: Upload wheels if: success() shell: bash @@ -129,6 +139,7 @@ jobs: NUMPY_STAGING_UPLOAD_TOKEN: ${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }} NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }} run: | + conda install -y anaconda-client source tools/wheels/upload_wheels.sh set_upload_vars # trigger an upload to @@ -138,6 +149,7 @@ jobs: # https://anaconda.org/multibuild-wheels-staging/numpy # The tokens were originally generated at anaconda.org upload_wheels + build_sdist: name: Build sdist needs: get_commit_message @@ -190,6 +202,16 @@ jobs: name: sdist path: ./dist/* + - uses: conda-incubator/setup-miniconda@v2 + with: + # for installation of anaconda-client, required for upload to + # anaconda.org + # default (and activated) environment name is test + # Note that this step is *after* specific pythons have been used to + # build and test + auto-update-conda: true + python-version: "3.10" + - name: Upload sdist if: success() shell: bash @@ -197,6 +219,7 @@ jobs: NUMPY_STAGING_UPLOAD_TOKEN: ${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }} NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }} run: | + conda install -y anaconda-client source tools/wheels/upload_wheels.sh set_upload_vars # trigger an upload to |