mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
27 lines
761 B
YAML
27 lines
761 B
YAML
pool:
|
|
vmImage: 'Ubuntu 16.04'
|
|
|
|
variables:
|
|
buildConfiguration: 'Release'
|
|
|
|
steps:
|
|
- script: |
|
|
msbuild /t:Restore Terminal.sln
|
|
displayName: Restore dependencies
|
|
|
|
|
|
- script: |
|
|
if echo $BUILD_SOURCEBRANCH | grep /release/; then perl -pi -e "s/PackageVersion>.*</PackageVersion>${BUILD_SOURCEBRANCHNAME}</" Terminal.Gui/Terminal.Gui.csproj; fi
|
|
displayName: Update NuGet package version from branch name
|
|
|
|
- script: |
|
|
msbuild /p:Configuration=Release Terminal.sln
|
|
displayName: Build
|
|
|
|
- script: |
|
|
cp ./Terminal.Gui/bin/Release/Terminal.Gui.*.nupkg $BUILD_ARTIFACTSTAGINGDIRECTORY
|
|
displayName: Copy artifacts to staging directory
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true))
|