GtkSharp/azure-pipelines.yml
2019-08-10 17:02:49 +02:00

60 lines
1.7 KiB
YAML

variables:
versionbase: 3.22.25
increment: $[counter(variables['versionbase'], 1)]
version: $(versionbase).$(increment)
trigger:
branches:
include:
- master
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo "##vso[build.updatebuildnumber]$(version)"
displayName: 'Set Build Number'
- script: sudo apt install -y monodevelop
displayName: 'Install MonoDevelop'
- script: ./build.sh --BuildTarget=FullBuild --BuildVersion=$(version)
displayName: 'CAKE Script'
- task: PublishBuildArtifacts@1
displayName: Publish Binaries Artifact
inputs:
pathtoPublish: BuildOutput/Release
artifactName: Binaries
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish NuGet Artifact
inputs:
pathtoPublish: BuildOutput/NugetPackages
artifactName: NuGet
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish Samples Artifact
inputs:
pathtoPublish: BuildOutput/Samples
artifactName: Samples
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish MonoDevelop Addin
inputs:
pathtoPublish: BuildOutput/Addins/MonoDevelop/MonoDevelop.GtkSharp.Addin_$(version).mpack
artifactName: MonoDevelop Addin
publishLocation: container
- task: DotNetCoreCLI@2
displayName: Publish to MyGet
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/develop'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: 'push'
packagesToPush: 'BuildOutput/NugetPackages/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '5167ff63-e617-405e-a8f1-8cac89433e2d/1678f7d9-b3a8-4618-9193-93718f939e4b'