Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dgiovanis committed Feb 12, 2021
1 parent fe34c0c commit 51751bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,20 @@ steps:
pollingTimeoutSec: '300'

- script: |
python setup.py $(GitVersion.SemVer) sdist bdist_wheel
#python setup.py $(GitVersion.SemVer) sdist bdist_wheel
python setup.py 100.0.1 sdist bdist_wheel
displayName: Artifact creation
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: CopyFiles@2
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
SourceFolder: 'dist'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'

- task: PublishBuildArtifacts@1
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'dist'
Expand All @@ -137,7 +138,7 @@ steps:
- script: |
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --username "$(TESTPYPIU)" #--password "$(TESTPYPIP)"
displayName: Upload to Test PyPi
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# - task: GitHubRelease@1
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
Expand Down

0 comments on commit 51751bf

Please sign in to comment.