You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

azure-pipelines.yml 962 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. variables:
  2. buildConfiguration: Release
  3. buildTag: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
  4. buildNumber: $[ variables['Build.BuildNumber'] ]
  5. trigger:
  6. tags:
  7. include:
  8. - '*'
  9. branches:
  10. include:
  11. - '*'
  12. jobs:
  13. - job: Linux
  14. pool:
  15. vmImage: 'ubuntu-16.04'
  16. steps:
  17. - task: UseDotNet@2
  18. displayName: 'Use .NET Core sdk'
  19. inputs:
  20. packageType: 'sdk'
  21. version: '3.x'
  22. - template: azure/build.yml
  23. - job: Windows_build
  24. pool:
  25. vmImage: 'windows-2019'
  26. condition: ne(variables['Build.SourceBranch'], 'refs/heads/dev')
  27. steps:
  28. - template: azure/build.yml
  29. - job: Windows_deploy
  30. pool:
  31. vmImage: 'windows-2019'
  32. condition: |
  33. and (
  34. succeeded(),
  35. or (
  36. eq(variables['Build.SourceBranch'], 'refs/heads/dev'),
  37. eq(variables['buildTag'], True)
  38. )
  39. )
  40. steps:
  41. - template: azure/build.yml
  42. - template: azure/deploy.yml
  43. - template: azure/docs.yml