Skip to content

Commit

Permalink
fix(cd): proper naming for artefact and zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosSF committed Jan 7, 2025
1 parent 3f243db commit 237a17d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-devops/templates/cd-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,19 @@ steps:
displayName: 'Update web.config file'
workingDirectory: ${{ parameters.workingDir }}
- script: |
sourcePath="$(Build.SourcesDirectory)/${{ parameters.targetFolder }}"
destinationZip="$(Build.ArtifactStagingDirectory)/output.zip"
cd "$sourcePath"
zip -r "$destinationZip" ./
displayName: 'Zip build output'
- task: PublishPipelineArtifact@1
displayName: Publish Artifact
inputs:
targetPath: $(Build.SourcesDirectory)/${{ parameters.targetFolder }}
artifact: $(Build.SourceBranchName)-artifact
targetPath: $(Build.ArtifactStagingDirectory)/output.zip
artifact: {{ parameters.submoduleDir }}-artifact
publishLocation: pipeline

- task: Npm@1
Expand Down

0 comments on commit 237a17d

Please sign in to comment.