Skip to content

Commit 40185f1

Browse files
committed
1 parent e8fa5b2 commit 40185f1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/buildwheel.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,37 @@ jobs:
253253
- run: pip install sympy==${{ matrix.sympy-version }}
254254
- run: python -c 'import sympy; sympy.test(parallel=True)'
255255

256+
# Push nightly wheels to Anaconda scientific-python nightly channel
257+
# https://scientific-python.org/specs/spec-0004/
258+
# https://anaconda.org/scientific-python-nightly-wheels/python-flint
259+
# https://github.com/scientific-python/upload-nightly-action/issues/111
260+
261+
nightly-wheels-upload:
262+
name: Upload Anaconda Scientific Python nightly wheels
263+
needs: [build_wheels]
264+
# Run on push/merge to main
265+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
266+
runs-on: ubuntu-latest
267+
268+
steps:
269+
# Downloads all artifacts
270+
- name: Download release artifacts
271+
uses: actions/download-artifact@v4
272+
with:
273+
path: wheelhouse
274+
merge-multiple: true
275+
276+
- name: Copy the wheels into dist
277+
run: mkdir dist && cp wheelhouse/*.whl dist
278+
279+
- name: Upload wheels
280+
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
281+
with:
282+
artifacts_path: dist
283+
# This token is generated from anaconda.org
284+
# https://github.com/scientific-python/upload-nightly-action/issues/111
285+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
286+
256287
# Deploy wheels and sdist to PyPI
257288

258289
pypi_release:

0 commit comments

Comments
 (0)