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 25141be
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,34 @@ 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
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)/feather'
rootFolderOrFile: '$(Build.BinariesDirectory)/feather/*'
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 25141be

Please sign in to comment.