Skip to content

Commit

Permalink
add azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles DE VANDIERE committed Nov 18, 2019
1 parent 22910db commit 7da7828
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: $(GitVersion.FullSemVer)
pool:
vmImage: 'windows-2019'

variables:
buildConfiguration: Release

trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- docs/*
- README.md


steps:
- checkout: self
clean: true
persistCredentials: true

- script: GitVersion /output buildserver
displayName: GitVersion

- script: dotnet pack -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\out -p:Version=$(GitVersion.SemVer)
displayName: 'dotnet pack'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)\out
ArtifactName: out

0 comments on commit 7da7828

Please sign in to comment.