forked from fvutils/vte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
32 lines (29 loc) · 912 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
variables:
build_num: $(Build.BuildNumber)
jobs:
- job: PyPi_Linux
pool:
vmImage: 'ubuntu-18.04'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
python -m pip install wheel
python -m pip install twine
displayName: 'Install wheel+twine'
- script: |
python setup.py bdist_wheel --universal
displayName: 'Build Wheel'
- task: TwineAuthenticate@1
condition: eq(variables['Build.SourceBranchName'], 'master')
inputs:
pythonUploadServiceConnection: pypi-vte
- script: |
# Only deploy from master
if test "$(Build.SourceBranchName)" = "master"; then
python -m twine --version
echo "Calling twine"
python -m twine upload -r vte --config-file $(PYPIRC_PATH) dist/*.whl
echo "Calling twine complete"
fi
displayName: 'Upload to PyPi'