Skip to content

Instantly share code, notes, and snippets.

@MelbourneDeveloper
Created December 25, 2020 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MelbourneDeveloper/e0e0cfa30e3670376785fd6551939d4d to your computer and use it in GitHub Desktop.
Save MelbourneDeveloper/e0e0cfa30e3670376785fd6551939d4d to your computer and use it in GitHub Desktop.
Device .Net Azure Pipeline YAML
trigger:
- main
pool:
vmImage: "windows-latest"
steps:
- task: NuGetCommand@2
inputs:
command: "restore"
restoreSolution: "src/Device.Net.Pipelines.sln"
feedsToUse: "select"
- task: MSBuild@1
inputs:
solution: "src/Device.Net.Pipelines.sln"
configuration: "Release"
- task: NuGetCommand@2
inputs:
command: "pack"
packagesToPack: "Build/NuSpecs/*.nuspec"
versioningScheme: "off"
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'a579837a-f36e-462f-8492-1a622b5cadb9/f3bac9de-5bde-4855-b10a-d1fe458ac336'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment