steps: - task: DotNetCoreCLI@2 displayName: Publish Win10-x64 inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "win10-x64" -o $(Build.ArtifactStagingDirectory)/win-64' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App Win10-x64' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/win-64/ClientApp/dist' - task: DotNetCoreCLI@2 displayName: Publish Win10-x86 inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "win10-x86" -o $(Build.ArtifactStagingDirectory)/win-86' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App Win10-x86' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/win-86/ClientApp/dist' - task: DotNetCoreCLI@2 displayName: Publish OSX-x64 inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "osx-x64" -o $(Build.ArtifactStagingDirectory)/osx-64' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App OSX-x64' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/osx-64/ClientApp/dist' - task: DotNetCoreCLI@2 displayName: Publish Linux-x64 inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "linux-x64" -o $(Build.ArtifactStagingDirectory)/linux-64' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App Linux-x64' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/linux-64/ClientApp/dist' - task: DotNetCoreCLI@2 displayName: Publish Linux-ARM inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "linux-arm" -o $(Build.ArtifactStagingDirectory)/linux-arm' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App Linux-ARM' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/linux-arm/ClientApp/dist' - task: DotNetCoreCLI@2 displayName: Publish Linux-ARM-x64 inputs: command: 'publish' publishWebProjects: true arguments: '-c $(BuildConfiguration) -r "linux-arm64" -o $(Build.ArtifactStagingDirectory)/linux-arm64' zipAfterPublish: false modifyOutputPath: false - task: CopyFiles@2 displayName: 'Copy Angular App Linux-ARM64' inputs: SourceFolder: '$(UiLocation)dist' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/linux-arm64/ClientApp/dist' ### Zip them up - task: ArchiveFiles@2 displayName: Zip Win-x64 inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/win-64' includeRootFolder: false archiveType: 'zip' archiveFile: '$(Build.ArtifactStagingDirectory)/win-x64-$(Build.BuildId).zip' replaceExistingArchive: true - task: ArchiveFiles@2 displayName: Zip Win-x86 inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/win-86' includeRootFolder: false archiveType: 'zip' archiveFile: '$(Build.ArtifactStagingDirectory)/win-x86-$(Build.BuildId).zip' replaceExistingArchive: true - task: ArchiveFiles@2 displayName: Zip OSX-x64 inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/osx-64' includeRootFolder: false archiveType: 'tar' archiveFile: '$(Build.ArtifactStagingDirectory)/osx-x64-$(Build.BuildId).tar.gz' replaceExistingArchive: true - task: ArchiveFiles@2 displayName: Zip Linux-x64 inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-64' includeRootFolder: false archiveType: 'tar' archiveFile: '$(Build.ArtifactStagingDirectory)/linux-x64-$(Build.BuildId).tar.gz' replaceExistingArchive: true - task: ArchiveFiles@2 displayName: Zip Linux-ARM inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-arm' includeRootFolder: false archiveType: 'tar' archiveFile: '$(Build.ArtifactStagingDirectory)/linux-arm-$(Build.BuildId).tar.gz' replaceExistingArchive: true - task: ArchiveFiles@2 displayName: Zip Linux-ARM-x64 inputs: rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-arm64' includeRootFolder: false archiveType: 'tar' archiveFile: '$(Build.ArtifactStagingDirectory)/linux-arm64-$(Build.BuildId).tar.gz' replaceExistingArchive: true - task: GitHubRelease@1 inputs: gitHubConnection: 'github.com_tidusjar' repositoryName: 'tidusjar/Ombi.Releases' action: 'create' target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672' tagSource: 'userSpecifiedTag' tag: '$(gitTag)' releaseNotesSource: 'inline' releaseNotesInline: '$(ReleaseNotes)' assets: | $(Build.ArtifactStagingDirectory)/*.zip $(Build.ArtifactStagingDirectory)/*.gz isPreRelease: true changeLogCompareToRelease: 'lastNonDraftRelease' changeLogType: 'commitBased' condition: and(succeeded(), eq(variables['PublishToGithub'], 'true'))