Skip to content

Commit

Permalink
Update azure-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyRibina authored Jun 1, 2020
1 parent 1068a1e commit 284e2ff
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ trigger:
- master

pool:
vmImage: 'windows-latest'
vmImage: 'VS2017-Win2016'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1
- task: NuGetToolInstaller@0

- task: NuGetCommand@2
inputs:
Expand All @@ -32,32 +32,12 @@ steps:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
artifactName: drop
itemPattern: '*.exe'

steps:
- task: ArchiveFiles@2
displayName: 'Archive $(Agent.ReleaseDirectory)\PolyRibina.CI\drop\WindowsFormsApp1\bin\Release\'
inputs:
rootFolderOrFile: '$(Agent.ReleaseDirectory)\PolyRibina.CI\drop\WindowsFormsApp1\bin\Release\'
archiveFile: '$(Agent.ReleaseDirectory)\PolyRibina.CI\drop\$(Build.BuildId).zip'
verbose: true

steps:
- task: GitHubRelease@0
displayName: 'GitHub release (create)'
- task: PublishBuildArtifacts@1
inputs:
gitHubConnection: PolyRibina
repositoryName: PolyRibina/CI
tagSource: manual
tag: '$(Release.ReleaseName)'
title: '$(Release.ReleaseName)'
releaseNotesSource: input
releaseNotes: '$(Release.ReleaseName)'
assets: |
$(Agent.ReleaseDirectory)\PolyRibina.CI\drop\*.zip
pathtoPublish: '$(Build.SourcesDirectory)'
artifactName: 'drop'
publishLocation: 'Container' # Options: container, filePath
targetPath: # Required when publishLocation == FilePath
#parallel: false # Optional
#parallelCount: # Optional

0 comments on commit 284e2ff

Please sign in to comment.