Skip to content

Commit

Permalink
put the github release before the pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Aug 9, 2019
1 parent 240bfaa commit 3b7a0f8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
batch: true
batch: false
branches:
include:
- master
Expand Down Expand Up @@ -152,6 +152,14 @@ jobs:
contains(variables['Build.SourceBranch'], 'tags')

steps:
- task: GitHubRelease@0
inputs:
gitHubConnection: 'Azure DevOps'
repositoryName: 'isogeo/isogeo-api-py-minsdk'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'

- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
Expand All @@ -164,7 +172,7 @@ jobs:
inputs:
externalFeeds: 'Python Package Index (PyPi)' # see: https://dev.azure.com/isogeo/Python%20SDK/_settings/adminservices?resourceId=7650b333-6c8a-4c56-a839-a33242255c16&resource=%5Bobject%20Object%5D&_a=resources

- script: twine upload dist/* -u $(TWINE_USERNAME) -p $(TWINE_PASSWORD)
- script: twine upload dist/* -r 'Python Package Index (PyPi)' -u $(TWINE_USERNAME) -p $(TWINE_PASSWORD)
displayName: "Upload to PyPi"

- task: GitHubRelease@0
Expand Down

0 comments on commit 3b7a0f8

Please sign in to comment.