1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00

Changelog moved and pipeline updated

This commit is contained in:
2021-05-30 00:22:35 +03:00
parent 6cd12eb80e
commit 8101d5e7a0
4 changed files with 24 additions and 16 deletions
+12 -3
View File
@@ -4,7 +4,7 @@ trigger:
- master
paths:
include:
- CHANGELOG.md
- SimpleOTP/**
pool:
vmImage: 'windows-latest'
@@ -50,8 +50,17 @@ steps:
searchFolder: '$(System.DefaultWorkingDirectory)'
codeCoverageEnabled: true
- task: PowerShell@2
displayName: 'Copy changelog'
inputs:
targetType: 'inline'
script: |
New-Item $(Build.ArtifactStagingDirectory)\Changelog.md
(Select-Xml -Path SimpleOTP.csproj -XPath /Project/PropertyGroup/PackageReleaseNotes | Select-Object -ExpandProperty Node).InnerText | Set-Content $(Build.ArtifactStagingDirectory)\changelog.md -Encoding UTF8
workingDirectory: '$(Build.SourcesDirectory)\SimpleOTP'
- task: CopyFiles@2
displayName: 'Copy file to staging'
displayName: 'Copy package to staging'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: '**/Release/**/*.nupkg'
@@ -63,4 +72,4 @@ steps:
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Artifacts'
publishLocation: 'Container'
publishLocation: 'Container'