File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -427,38 +427,6 @@ jobs:
427427 - run : pip install git+https://github.com/sympy/sympy.git@master
428428 - run : python -c 'import sympy; sympy.test(parallel=True)'
429429
430- # Push nightly wheels to Anaconda scientific-python nightly channel
431- # https://scientific-python.org/specs/spec-0004/
432- # https://anaconda.org/scientific-python-nightly-wheels/python-flint
433- # https://github.com/scientific-python/upload-nightly-action/issues/111
434-
435- nightly-wheels-upload :
436- name : Upload Anaconda Scientific Python nightly wheels
437- needs : [build_wheels]
438- # Run on push/merge to main
439- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
440- runs-on : ubuntu-latest
441- permissions : {}
442-
443- steps :
444- # Downloads all artifacts
445- - name : Download release artifacts
446- uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
447- with :
448- path : wheelhouse
449- merge-multiple : true
450-
451- - name : Copy the wheels into dist
452- run : mkdir dist && cp wheelhouse/*.whl dist
453-
454- - name : Upload wheels
455- uses : scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
456- with :
457- artifacts_path : dist
458- # This token is generated from anaconda.org
459- # https://github.com/scientific-python/upload-nightly-action/issues/111
460- anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} # zizmor: ignore[secrets-outside-env]
461-
462430 # Deploy wheels and sdist to PyPI
463431
464432 pypi_release :
Original file line number Diff line number Diff line change 1+ name : Upload Nightly Wheels
2+
3+ on :
4+ # XXX: zizmor says that workflow_run is insecure but this is restricted to
5+ # a push to main only.
6+ workflow_run : # zizmor: ignore[dangerous-triggers]
7+ workflows : [Build]
8+ types : [completed]
9+ branches : [main]
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ permissions : {}
16+
17+ jobs :
18+ nightly-wheels-upload :
19+ name : Upload Anaconda Scientific Python nightly wheels
20+ if : >
21+ github.event.workflow_run.conclusion == 'success' &&
22+ github.event.workflow_run.event == 'push'
23+ runs-on : ubuntu-latest
24+ environment :
25+ name : anaconda_nightly
26+ permissions :
27+ actions : read # Required to download artifacts from the triggering workflow run.
28+
29+ steps :
30+ - name : Download release artifacts
31+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
32+ with :
33+ github-token : ${{ github.token }}
34+ repository : ${{ github.repository }}
35+ run-id : ${{ github.event.workflow_run.id }}
36+ path : wheelhouse
37+ merge-multiple : true
38+
39+ - name : Copy the wheels into dist
40+ run : mkdir dist && cp wheelhouse/*.whl dist
41+
42+ - name : Upload wheels
43+ uses : scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
44+ with :
45+ artifacts_path : dist
46+ # This token is generated from anaconda.org
47+ # https://github.com/scientific-python/upload-nightly-action/issues/111
48+ anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN_V2 }}
You can’t perform that action at this time.
0 commit comments