Skip to content

Commit

Permalink
fixed azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Venipa committed Jul 2, 2019
1 parent f5f660f commit 2afce25
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
Expand Up @@ -13,6 +13,7 @@ variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
releaseFolder: '$(build.sourcesdirectory)\CoubDownload-Bridge\bin\$(buildConfiguration)'

steps:
- task: NuGetToolInstaller@0
Expand All @@ -26,3 +27,37 @@ steps:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(releaseFolder)'
artifact: 'Build'

- task: CmdLine@2
displayName: 'Creating Release Directory'
inputs:
script: 'mkdir r'
workingDirectory: '$(releaseFolder)'
- task: CmdLine@2
displayName: 'Copying executable'
inputs:
script: 'cp -r CoubDownload-Bridge.exe r/'
workingDirectory: '$(releaseFolder)'
- task: CmdLine@2
displayName: 'Copying ffmpeg processor'
inputs:
script: 'cp -r FFMPEG/ r/'
workingDirectory: '$(releaseFolder)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(releaseFolder)/r/'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/rev$(Build.BuildId).zip'
replaceExistingArchive: true
- task: GitHubRelease@0
inputs:
gitHubConnection: 'Venipa-Releases'
repositoryName: '$(Build.Repository.Name)'
tagSource: manual
tag: $(Build.BuildNumber)
assets: '$(Build.ArtifactStagingDirectory)/rev$(Build.BuildId).zip'

0 comments on commit 2afce25

Please sign in to comment.