mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
de572ae94e
commit
9ec961ad2d
1 changed files with 62 additions and 55 deletions
|
|
@ -22,18 +22,26 @@ variables:
|
|||
- name: PublishFolder
|
||||
value: publish
|
||||
|
||||
steps:
|
||||
- task: NuGetToolInstaller@1
|
||||
stages:
|
||||
- stage: build
|
||||
displayName: Build and Publish
|
||||
|
||||
jobs:
|
||||
- job: build
|
||||
displayName: Build and Publish
|
||||
|
||||
steps:
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: 'Install NuGet 4.4.1'
|
||||
inputs:
|
||||
versionSpec: '4.4.1'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
- task: NuGetCommand@2
|
||||
displayName: 'NuGet restore'
|
||||
inputs:
|
||||
restoreSolution: '$(SolutionFile)'
|
||||
|
||||
- task: PowerShell@2
|
||||
- task: PowerShell@2
|
||||
displayName: 'Apply Semantic Versioning to Assemblies'
|
||||
inputs:
|
||||
targetType: filePath
|
||||
|
|
@ -41,21 +49,21 @@ steps:
|
|||
arguments: "-applicationName $(ApplicationName) -pathToSearch '$(Build.SourcesDirectory)/src' -buildNumber $(Build.BuildNumber) -searchFilter 'AssemblyInfo.*'"
|
||||
pwsh: true
|
||||
|
||||
- task: projectfileprops@1
|
||||
- task: projectfileprops@1
|
||||
displayName: 'Modify ApplicationVersion In Project File'
|
||||
inputs:
|
||||
path: '$(ProjectFile)'
|
||||
fieldOptions: ApplicationVersion
|
||||
value: '$(VersionMajor).$(VersionMinor).$(VersionBuild).%2a'
|
||||
|
||||
- task: projectfileprops@1
|
||||
- task: projectfileprops@1
|
||||
displayName: 'Modify ApplicationRevision In Project File'
|
||||
inputs:
|
||||
path: '$(ProjectFile)'
|
||||
fieldOptions: ApplicationRevision
|
||||
value: '$(VersionRevision)'
|
||||
|
||||
- task: VSBuild@1
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build $(ApplicationName) Project'
|
||||
inputs:
|
||||
solution: '$(ProjectFile)'
|
||||
|
|
@ -64,7 +72,7 @@ steps:
|
|||
configuration: '$(BuildConfiguration)'
|
||||
clean: true
|
||||
|
||||
- task: CopyFiles@2
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Artifact Files'
|
||||
inputs:
|
||||
SourceFolder: '$(Build.SourcesDirectory)'
|
||||
|
|
@ -78,9 +86,8 @@ steps:
|
|||
flattenFolders: true
|
||||
preserveTimestamp: true
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifacts'
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
ArtifactName: '$(PublishFolder)'
|
||||
condition: succeededOrFailed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue