@@ -32,11 +32,11 @@ concurrency:
32
32
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
33
33
cancel-in-progress : true
34
34
35
- permissions :
36
- contents : read # to fetch code (actions/checkout)
37
35
38
36
jobs :
39
37
build-wasm-emscripten :
38
+ permissions :
39
+ contents : read # to fetch code (actions/checkout)
40
40
name : Build NumPy distribution for Pyodide
41
41
runs-on : ubuntu-22.04
42
42
# To enable this workflow on a fork, comment out:
@@ -57,14 +57,27 @@ jobs:
57
57
with :
58
58
name : cp312-pyodide_wasm32
59
59
path : ./wheelhouse/*.whl
60
+ if-no-files-found : error
61
+
62
+ # Push to https://anaconda.org/scientific-python-nightly-wheels/numpy
63
+ # WARNING: this job will overwrite any existing WASM wheels.
64
+ upload-wheels :
65
+ name : Upload NumPy WASM wheels to Anaconda.org
66
+ runs-on : ubuntu-22.04
67
+ permissions : {}
68
+ needs : [build-wasm-emscripten]
69
+ if : >-
70
+ (github.repository == 'numpy/numpy') &&
71
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
72
+ (github.event_name == 'schedule')
73
+ steps :
74
+ - name : Download wheel artifact(s)
75
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
76
+ with :
77
+ path : wheelhouse/
78
+ merge-multiple : true
60
79
61
- # Push to https://anaconda.org/scientific-python-nightly-wheels/numpy
62
- # WARNING: this job will overwrite any existing WASM wheels.
63
80
- name : Push to Anaconda PyPI index
64
- if : >-
65
- (github.repository == 'numpy/numpy') &&
66
- (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
67
- (github.event_name == 'schedule')
68
81
uses : scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0
69
82
with :
70
83
artifacts_path : wheelhouse/
0 commit comments