Skip to content

Commit

Permalink
Fix GitHub Releases on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
caelunshun committed Sep 1, 2019
1 parent 97ee3dc commit f79547e
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ jobs:
sourceFolder: '$(Build.SourcesDirectory)/target/release'
contents: feather_server
targetFolder: '$(Build.BinariesDirectory)/feather'
condition: ne( variables['Agent.OS'], 'Windows_NT' )

- task: CopyFiles@2
displayName: Copy assets
inputs:
sourceFolder: '$(Build.SourcesDirectory)\target\release'
contents: feather_server.exe
targetFolder: '$(Build.BinariesDirectory)\feather'
condition: eq( variables['Agent.OS'], 'Windows_NT' )

- task: ArchiveFiles@2
displayName: Gather assets
Expand All @@ -151,9 +160,17 @@ jobs:
archiveType: 'tar'
tarCompression: 'gz'
archiveFile: '$(Build.ArtifactStagingDirectory)/feather-$(build.tag)-$(platform).tar.gz'
condition: ne( variables['Agent.OS'], 'Windows_NT' )

- task: ArchiveFiles@2
displayName: Gather assets
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)\feather\*'
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)\feather-$(build.tag)-$(platform).zip'
condition: eq( variables['Agent.OS'], 'Windows_NT' )

- task: GithubRelease@0
condition: succeeded()
inputs:
gitHubConnection: 'caelunshun_pat'
repositoryName: 'caelunshun/feather'
Expand All @@ -165,3 +182,18 @@ jobs:
title: '$(build.tag)'
assetUploadMode: 'replace'
addChangeLog: false
condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT' ))

- task: GithubRelease@0
inputs:
gitHubConnection: 'caelunshun_pat'
repositoryName: 'caelunshun/feather'
action: 'edit'
target: '$(build.sourceVersion)'
tagSource: 'manual'
tag: '$(build.tag)'
assets: '$(Build.ArtifactStagingDirectory)\feather-$(build.tag)-$(platform).zip'
title: '$(build.tag)'
assetUploadMode: 'replace'
addChangeLog: false
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))

0 comments on commit f79547e

Please sign in to comment.