forked from seanmcne/Microsoft.Xrm.Data.PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
42 lines (35 loc) · 1.25 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
- '*'
steps:
- script: ls
displayName: 'List all files/directories in root'
- script: find . -name '*.pshproj' -delete
displayName: 'Delete pshproj files'
- script: find . -name '*.pssproj' -delete
displayName: 'Delete pssproj files'
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)/Microsoft.Xrm.Data.PowerShell'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/Microsoft.Xrm.Data.PowerShell'
CleanTargetFolder: true
OverWrite: true
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Write your PowerShell commands here.
echo $(Build.SourcesDirectory)/Microsoft.Xrm.Data.PowerShell
ls $(Build.SourcesDirectory)/Microsoft.Xrm.Data.PowerShell
#Publish-Module -NuGetApiKey $(GalleryKey) -Path $(Build.SourcesDirectory)/Microsoft.Xrm.Data.PowerShell -verbose -whatif
workingDirectory: '$(Build.SourcesDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'