diff --git a/.azure-pipelines/package.yml b/.azure-pipelines/package.yml index 4875257..688ca89 100755 --- a/.azure-pipelines/package.yml +++ b/.azure-pipelines/package.yml @@ -1,22 +1,24 @@ steps: - script: | - npx vsce package -o release.vsix + npx vsce package -o $(Build.ArtifactStagingDirectory)/release.vsix displayName: 'create vsix' - - task: PublishPipelineArtifact@0 - displayName: 'Publish Pipeline Artifact' + - task: CopyFiles@2 inputs: - targetPath: release.vsix - condition: and(succeeded(), eq(variables['node_version'], '12.x'), eq(variables['Agent.OS'], 'Linux')) + sourceFolder: '$(Build.SourcesDirectory)' + contents: 'package.json' + targetFolder: $(Build.ArtifactStagingDirectory) + displayName: 'Copy package.json' - - task: PublishPipelineArtifact@0 + - task: CopyFiles@2 inputs: - contents: 'package.json' - displayName: 'Copy package.json' - condition: and(succeeded(), eq(variables['node_version'], '12.x'), eq(variables['Agent.OS'], 'Linux')) + sourceFolder: '$(Build.SourcesDirectory)' + contents: '*.md' + targetFolder: $(Build.ArtifactStagingDirectory) + displayName: 'Copy *.md' - task: PublishPipelineArtifact@0 + displayName: 'Publish Pipeline Artifact' inputs: - contents: '*.md' - displayName: 'Copy *.md' + targetPath: '*.*' condition: and(succeeded(), eq(variables['node_version'], '12.x'), eq(variables['Agent.OS'], 'Linux'))