Skip to content

Commit

Permalink
Simplify CI Config
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Jul 6, 2021
1 parent 6ca3722 commit 2eb4e27
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,25 @@
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
- master

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
BuildConfiguration: 'Release'

steps:
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: DotNetCoreCLI@2
inputs:
command: 'test'
arguments: '--configuration Release'

- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
arguments: '-c Release --output $(Build.ArtifactStagingDirectory)/ArpLookup-publish'
command: 'build'
arguments: '-c $(BuildConfiguration) /p:ContinuousIntegrationBuild=true'

- task: DotNetCoreCLI@2
inputs:
command: 'pack'
arguments: '-c Release --output $(Build.ArtifactStagingDirectory)/ArpLookup-nupkg'
command: pack
nobuild: true
configuration: $(BuildConfiguration)
packDirectory: $(Build.ArtifactStagingDirectory)/Packages

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'

0 comments on commit 2eb4e27

Please sign in to comment.