Skip to content

Commit

Permalink
Add Publish job to release the package to PyPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 9, 2019
1 parent b380060 commit 5b52b26
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,21 @@ jobs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()

- job: 'Publish'
pool:
vmImage: 'Ubuntu-16.04'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'

- script: python -m pip install tox
displayName: 'Install tox'

- script: |
tox -e release
displayName: 'publish to PyPI'
condition: contains($(Build.SourceBranch), 'tags')

0 comments on commit 5b52b26

Please sign in to comment.