From 4c02f917e7adf4e604aaf92fa9f863cf3f24f8c3 Mon Sep 17 00:00:00 2001 From: Anthony Truskinger Date: Fri, 27 Mar 2020 18:06:55 +1000 Subject: [PATCH] Fixes issue with publish step Adds archive step so unix permissions are preserved. Disables looking for web projects in publish step because we don't have any web projects! Work done for #196 --- build/azure-pipelines-build.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/build/azure-pipelines-build.yml b/build/azure-pipelines-build.yml index a11a09bed..2a4deba2d 100644 --- a/build/azure-pipelines-build.yml +++ b/build/azure-pipelines-build.yml @@ -41,7 +41,6 @@ jobs: steps: # - pwsh: 'Get-ChildItem Env:' # displayName: debug environment variables - - checkout: self clean: false fetchDepth: 100 @@ -166,14 +165,26 @@ jobs: arguments: > --runtime ${{ platform.rid }} --configuration ${{ configuration }} - --output $(Build.ArtifactStagingDirectory) + --output $(Build.BinariesDirectory) --self-contained nobuild: true - zipAfterPublish: true + publishWebProjects: false + zipAfterPublish: false # does not seem to tar - we need to keep unix permissions displayName: dotnet publish + - task: ArchiveFiles@2 + rootFolderOrFile: '$(Build.BinariesDirectory)' + includeRootFolder: false + + displayName: Archive published app + # this code takes all the files in $(Build.ArtifactStagingDirectory) and uploads them as an artifact of your build. - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.ArtifactStagingDirectory)' - artifactName: '${{ platform.rid }}_${{ configuration }}' \ No newline at end of file + ${{ if eq(configuration, 'Debug') }}: + artifactName: '${{ platform.rid }}_Debug' + ${{ if ne(configuration, 'Debug') }}: + artifactName: '${{ platform.rid }}' + + \ No newline at end of file