@@ -120,10 +120,10 @@ jobs:
120
120
set -e
121
121
if [ "$BUILD_REASON" == "Schedule" ]; then
122
122
ANACONDA_ORG="scipy-wheels-nightly"
123
- TOKEN="$NUMPY_NIGHTLY_UPLOAD_TOKEN "
123
+ TOKEN="$MAPPED_NUMPY_NIGHTLY_UPLOAD_TOKEN "
124
124
else
125
125
ANACONDA_ORG="multibuild-wheels-staging"
126
- TOKEN="$NUMPY_STAGING_UPLOAD_TOKEN "
126
+ TOKEN="$MAPPED_NUMPY_STAGING_UPLOAD_TOKEN "
127
127
fi
128
128
if [ "$TOKEN" == "" ]; then
129
129
echo "##[warning] Could not find anaconda.org upload token in secret variables"
@@ -133,13 +133,15 @@ jobs:
133
133
displayName: Retrieve secret upload token
134
134
env:
135
135
# Secret variables need to mapped to env variables explicitly:
136
- NUMPY_NIGHTLY_UPLOAD_TOKEN: $(NUMPY_NIGHTLY_UPLOAD_TOKEN)
137
- NUMPY_STAGING_UPLOAD_TOKEN: $(NUMPY_STAGING_UPLOAD_TOKEN)
136
+ MAPPED_NUMPY_NIGHTLY_UPLOAD_TOKEN: $(NUMPY_NIGHTLY_UPLOAD_TOKEN)
137
+ MAPPED_NUMPY_STAGING_UPLOAD_TOKEN: $(NUMPY_STAGING_UPLOAD_TOKEN)
138
+
138
139
- bash : |
139
140
set -e
140
141
# The --force option forces a replacement if the remote file already
141
142
# exists.
142
- ls numpy/dist/numpy-*.whl
143
+ echo uploading numpy/dist/numpy-*.whl
144
+ echo TOKEN starts with ${TOKEN:0:3}
143
145
anaconda -t $TOKEN upload --force -u $ANACONDA_ORG numpy/dist/numpy-*.whl
144
146
echo "PyPI-style index: https://pypi.anaconda.org/$ANACONDA_ORG/simple"
145
147
displayName: Upload to anaconda.org (only if secret token is retrieved)
0 commit comments