File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ name: Upload nightly wheels to Anaconda Cloud
33on :
44 # Run daily at 1:23 UTC to upload nightly wheels to Anaconda Cloud
55 schedule :
6- - cron : ' 23 1 * * *'
6+ - cron : ' 23 1 * * *'
77 # Run on demand with workflow dispatch
88 workflow_dispatch :
99
1010jobs :
1111 upload_nightly_wheels :
1212 name : Upload nightly wheels to Anaconda Cloud
1313 runs-on : ubuntu-latest
14+ if : github.repository_owner == 'matplotlib'
1415
1516 steps :
1617 - name : Install Python
@@ -29,10 +30,17 @@ jobs:
2930 WORKFLOW_NAME="cibuildwheel.yml"
3031 ARTIFACT_NAME=wheels
3132
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
3337 # 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+
3644
3745 mkdir dist
3846 mv *.whl dist/
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ Installing a nightly build
8787Matplotlib makes nightly development build wheels available on the
8888`scipy-wheels-nightly Anaconda Cloud organization
8989<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
9191as the package index to query:
9292
9393.. code-block :: sh
You can’t perform that action at this time.
0 commit comments