-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci]
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# .NET Desktop | ||
# Build and run tests for .NET Desktop or Windows classic desktop solutions. | ||
# Add steps that publish symbols, save build artifacts, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net | ||
|
||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
variables: | ||
solution: '**/*.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@1 | ||
|
||
- task: NuGetCommand@2 | ||
inputs: | ||
restoreSolution: '$(solution)' | ||
|
||
- task: VSBuild@1 | ||
inputs: | ||
solution: '$(solution)' | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
|
||
- task: VSTest@2 | ||
inputs: | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
|
||
- task: GitHubRelease@0 | ||
inputs: | ||
gitHubConnection: LilPidgey | ||
repositoryName: '$(Build.MarketStalker)' | ||
action: 'create' # Options: create, edit, delete | ||
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit | ||
tagSource: 'auto' # Required when action == Create# Options: auto, manual | ||
tagPattern: # Optional | ||
tag: # Required when action == Edit || Action == Delete || TagSource == Manual | ||
title: # Optional | ||
releaseNotesSource: 'file' # Optional. Options: file, input | ||
releaseNotesFile: # Optional | ||
releaseNotes: # Optional | ||
assets: '$(Build.ArtifactStagingDirectory)/*' # Optional | ||
assetUploadMode: 'delete' # Optional. Options: delete, replace | ||
isDraft: false # Optional | ||
isPreRelease: false # Optional | ||
addChangeLog: true # Optional |