forked from MonoMod/MonoMod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-postbuild.yml
32 lines (31 loc) · 1.14 KB
/
azure-pipelines-postbuild.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
parameters:
targetFramework: ''
buildConfiguration: 'Release'
steps:
- task: CopyFiles@2
displayName: 'Artifacts: Pack: ${{parameters.targetFramework}}'
continueOnError: true
inputs:
sourceFolder: '$(Agent.BuildDirectory)'
# the leading **/ shouldn't be necessary, but it seems to be
contents: |
**/artifacts/bin/**/${{parameters.buildConfiguration}}/${{parameters.targetFramework}}/**/*
!**/MonoMod.FrameworkTests/**/*
!**/Monomod.Backports.Filter/**/*
!**/Monomod.ILHelpers.Patcher/**/*
!**/MonoMod.UnitTest/**/*
!**/xunit.*
!**/testhost*
!**/System.*
!**/Microsoft.*
targetFolder: '$(Build.ArtifactStagingDirectory)/${{parameters.targetFramework}}'
cleanTargetFolder: true
overWrite: true
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Artifacts: Publish: ${{parameters.targetFramework}}'
continueOnError: true
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/${{parameters.targetFramework}}'
artifactName: '$(artifactPrefix)${{parameters.targetFramework}}$(artifactSuffix)'
publishLocation: 'Container'