Skip to content

Commit 1cc14d6

Browse files
committed
only build sdist on windows
1 parent e2c84b8 commit 1cc14d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.ci/azure-publish-dist.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ steps:
55
targetPath: 'dist'
66

77
- script: |
8-
python -m pip install -r requirements_build.txt
98
python setup.py sdist
9+
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Windows_NT'))
10+
11+
- script: |
12+
python -m pip install -r requirements_build.txt
1013
python -m pip install twine
1114
python -m twine upload dist/* --skip-existing -p $(TWINE_PASSWORD) -u $(TWINE_USERNAME)
1215
displayName: 'Upload Artifacts'

0 commit comments

Comments
 (0)