1
mirror of https://github.com/home-assistant/core synced 2024-07-21 14:24:50 +02:00

Update azure-pipelines-release.yml for Azure Pipelines

This commit is contained in:
Pascal Vizeli 2019-07-11 09:15:14 +02:00
parent 2eecb08b51
commit f0fe865798

View File

@ -19,7 +19,6 @@ stages:
- stage: 'Validate' - stage: 'Validate'
jobs: jobs:
- job: 'VersionValidate' - job: 'VersionValidate'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
steps: steps:
@ -54,7 +53,7 @@ stages:
- stage: 'Build' - stage: 'Build'
jobs: jobs:
- job: 'ReleasePython' - job: 'ReleasePython'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('VersionValidate')) condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded())
dependsOn: dependsOn:
- 'VersionValidate' - 'VersionValidate'
pool: pool:
@ -75,7 +74,7 @@ stages:
twine upload dist/* --skip-existing twine upload dist/* --skip-existing
displayName: 'Upload pypi' displayName: 'Upload pypi'
- job: 'ReleaseDocker' - job: 'ReleaseDocker'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('VersionValidate')) condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded())
dependsOn: dependsOn:
- 'VersionValidate' - 'VersionValidate'
timeoutInMinutes: 240 timeoutInMinutes: 240
@ -127,7 +126,7 @@ stages:
- stage: 'Publish' - stage: 'Publish'
jobs: jobs:
- job: 'ReleaseHassio' - job: 'ReleaseHassio'
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded('ReleaseDocker')) condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags'), succeeded())
dependsOn: dependsOn:
- 'ReleaseDocker' - 'ReleaseDocker'
pool: pool: