代码拉取完成,页面将自动刷新
trigger:
- master
- features/*
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: Bash@3
displayName: 'Build Script'
inputs:
targetType: filePath
filePath: ./build.sh
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 3.x SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: PowerShell@2
displayName: 'Build Script'
inputs:
targetType: filePath
filePath: ./build.ps1
- task: NuGetCommand@2
displayName: 'Push to MyGet'
inputs:
command: push
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'MyGet'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- task: NuGetCommand@2
displayName: 'Push to AzureArtifacts'
inputs:
command: 'push'
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'e845e192-3505-4ec1-8b52-7e11e77d5e2a/e94fc75b-9e25-43e7-bfbc-f0af758115c1'
allowPackageConflicts: true
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- task: NuGetCommand@2
displayName: 'Push to GitHub packages'
inputs:
command: push
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'GitHub Packages'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。