Skip to content

Commit

Permalink
Fixes issue with publish step
Browse files Browse the repository at this point in the history
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
  • Loading branch information
atruskie committed Mar 27, 2020
1 parent 6673ed4 commit 4c02f91
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions build/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
steps:
# - pwsh: 'Get-ChildItem Env:'
# displayName: debug environment variables

- checkout: self
clean: false
fetchDepth: 100
Expand Down Expand Up @@ -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 }}'
${{ if eq(configuration, 'Debug') }}:
artifactName: '${{ platform.rid }}_Debug'
${{ if ne(configuration, 'Debug') }}:
artifactName: '${{ platform.rid }}'


0 comments on commit 4c02f91

Please sign in to comment.