File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,37 @@ jobs:
149
149
name : ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }}
150
150
path : ./dist/*.whl
151
151
152
+ # We upload nightlies only on cron job runs, so it doesn't overlap with
153
+ # builds from which we publish to PyPI - we don't want these extra
154
+ # dependencies when building release artifacts.
155
+ - name : install micromamba
156
+ # win-arm64 is unsupported by micromamba at the moment
157
+ if : github.event_name == 'schedule' && matrix.buildplat[1] != 'win_arm64'
158
+ uses : mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b
159
+ with :
160
+ # For installation of anaconda-client, required for upload to anaconda.org
161
+ init-shell : bash
162
+ environment-name : upload-env
163
+ create-args : >-
164
+ anaconda-client
165
+
166
+ - name : win-arm64 install anaconda client
167
+ if : github.event_name == 'schedule' && matrix.buildplat[1] == 'win_arm64'
168
+ run : |
169
+ # Rust installation needed for rpds-py.
170
+ Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -UseBasicParsing -Outfile rustup-init.exe
171
+ .\rustup-init.exe -y
172
+ $env:PATH="$env:PATH;$env:USERPROFILE\.cargo\bin"
173
+ pip install anaconda-client
174
+
175
+ - name : Upload to anaconda.org
176
+ if : github.event_name == 'schedule' && github.repository == 'numpy/numpy-release'
177
+ shell : bash -el {0} # required for micromamba
178
+ env :
179
+ TOKEN : ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
180
+ run : |
181
+ anaconda -q -t ${TOKEN} upload --force -u scientific-python-nightly-wheels ./dist/*.whl
182
+
152
183
build_sdist :
153
184
name : Build sdist
154
185
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments