File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ name: Upload nightly wheels to Anaconda Cloud
3
3
on :
4
4
# Run daily at 1:23 UTC to upload nightly wheels to Anaconda Cloud
5
5
schedule :
6
- - cron : ' 23 1 * * *'
6
+ - cron : ' 23 1 * * *'
7
7
# Run on demand with workflow dispatch
8
8
workflow_dispatch :
9
9
10
10
jobs :
11
11
upload_nightly_wheels :
12
12
name : Upload nightly wheels to Anaconda Cloud
13
13
runs-on : ubuntu-latest
14
+ if : github.repository_owner == 'matplotlib'
14
15
15
16
steps :
16
17
- name : Install Python
@@ -29,10 +30,17 @@ jobs:
29
30
WORKFLOW_NAME="cibuildwheel.yml"
30
31
ARTIFACT_NAME=wheels
31
32
32
- gh run --repo "${PROJECT_REPO}" list --branch "${BRANCH}" --workflow "${WORKFLOW_NAME}" --json status,databaseId > runs.json
33
+ gh run --repo "${PROJECT_REPO}" \
34
+ list --branch "${BRANCH}" \
35
+ --workflow "${WORKFLOW_NAME}" \
36
+ --json status,databaseId > runs.json
33
37
# Get latest completed build of wheels
34
- RUN_ID=$(cat runs.json | jq -c '[ .[] | select(.status == "completed") ] | sort_by(.databaseId) | reverse | .[0].databaseId')
35
- gh run --repo "${PROJECT_REPO}" download "${RUN_ID}" --name "${ARTIFACT_NAME}"
38
+ RUN_ID=$(cat runs.json | \
39
+ jq -c '[ .[] | select(.status == "completed") ] | sort_by(.databaseId) | reverse | .[0].databaseId'
40
+ )
41
+ gh run --repo "${PROJECT_REPO}" \
42
+ download "${RUN_ID}" --name "${ARTIFACT_NAME}"
43
+
36
44
37
45
mkdir dist
38
46
mv *.whl dist/
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ Installing a nightly build
87
87
Matplotlib makes nightly development build wheels available on the
88
88
`scipy-wheels-nightly Anaconda Cloud organization
89
89
<https://anaconda.org/scipy-wheels-nightly> `_.
90
- These wheels can be installed with ``pip `` by specifiying scipy-wheels-nightly
90
+ These wheels can be installed with ``pip `` by specifying scipy-wheels-nightly
91
91
as the package index to query:
92
92
93
93
.. code-block :: sh
You can’t perform that action at this time.
0 commit comments