Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit c5e5317

Browse files
committed
ENH More like posix.yml
1 parent 8be66cd commit c5e5317

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

azure/posix-sdist.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,6 @@ jobs:
8888
displayName: "Publish Test Results"
8989
condition: eq(variables['SKIP_BUILD'], 'false')
9090

91-
- bash: |
92-
echo "##vso[task.prependpath]$CONDA/bin"
93-
sudo chown -R $USER $CONDA
94-
displayName: Add conda to PATH
95-
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
96-
97-
- bash: conda install -q -y anaconda-client
98-
displayName: Install anaconda-client
99-
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
100-
10191
- bash: |
10292
set -e
10393
if [ "$BUILD_REASON" == "Schedule" ]; then
@@ -113,12 +103,22 @@ jobs:
113103
echo "##vso[task.setvariable variable=TOKEN]$TOKEN"
114104
echo "##vso[task.setvariable variable=ANACONDA_ORG]$ANACONDA_ORG"
115105
displayName: Retrieve secret upload token
116-
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
106+
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN'], variables['SCIKIT_LEARN_STAGING_UPLOAD_TOKEN'])
117107
env:
118108
# Secret variables need to mapped to env variables explicitly:
119109
SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN: $(SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN)
120110
SCIKIT_LEARN_STAGING_UPLOAD_TOKEN: $(SCIKIT_LEARN_STAGING_UPLOAD_TOKEN)
121111
112+
- bash: |
113+
echo "##vso[task.prependpath]$CONDA/bin"
114+
sudo chown -R $USER $CONDA
115+
displayName: Add conda to PATH
116+
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['TOKEN'])
117+
118+
- bash: conda install -q -y anaconda-client
119+
displayName: Install anaconda-client
120+
condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['TOKEN'])
121+
122122
- bash: |
123123
set -e
124124
# The --force option forces a replacement if the remote file already

0 commit comments

Comments
 (0)