Create azure-pipeline.yaml
This commit is contained in:
		
							parent
							
								
									c61ebca4b6
								
							
						
					
					
						commit
						808dcbd18f
					
				
							
								
								
									
										45
									
								
								azure-pipeline.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								azure-pipeline.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,45 @@
 | 
			
		||||
# Starter pipeline
 | 
			
		||||
# Start with a minimal pipeline that you can customize to build and deploy your code.
 | 
			
		||||
# Add steps that build, run tests, deploy, and more:
 | 
			
		||||
# https://aka.ms/yaml
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  batch: true
 | 
			
		||||
  branches:
 | 
			
		||||
    include:
 | 
			
		||||
      - refs/tags/*
 | 
			
		||||
 | 
			
		||||
pool:
 | 
			
		||||
  vmImage: 'ubuntu-latest'
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
 | 
			
		||||
- task: GitVersion@5
 | 
			
		||||
  displayName: 'Git Version'
 | 
			
		||||
 | 
			
		||||
- task: DotNetCoreCLI@2
 | 
			
		||||
  inputs:
 | 
			
		||||
    command: 'restore'
 | 
			
		||||
    projects: '**/*.csproj'
 | 
			
		||||
    feedsToUse: 'select'
 | 
			
		||||
 | 
			
		||||
- task: DotNetCoreCLI@2
 | 
			
		||||
  inputs:
 | 
			
		||||
    command: 'build'
 | 
			
		||||
    projects: '**/*.csproj'
 | 
			
		||||
 | 
			
		||||
- task: DotNetCoreCLI@2
 | 
			
		||||
  inputs:
 | 
			
		||||
    command: 'pack'
 | 
			
		||||
    packagesToPack: '**/*.csproj'
 | 
			
		||||
    includesymbols: true
 | 
			
		||||
    includesource: true
 | 
			
		||||
    versioningScheme: 'byEnvVar'
 | 
			
		||||
    versionEnvVar: 'GitVersion.NuGetVersion'
 | 
			
		||||
 | 
			
		||||
- task: NuGetCommand@2
 | 
			
		||||
  inputs:
 | 
			
		||||
    command: 'push'
 | 
			
		||||
    packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
 | 
			
		||||
    nuGetFeedType: 'external'
 | 
			
		||||
    publishFeedCredentials: 'PoweredSoftNuget'
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user