Skip to content

Commit 4759d03

Browse files
committed
Fix script
1 parent bf7ed80 commit 4759d03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/dmxc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
5252
- name: Copy Artifacts
5353
run: |
54+
If(Test-Path -Path dmxcplug.json) {
55+
$dmxcplug = (Get-Content "dmxcplug.json" | ConvertFrom-Json)
56+
$filter = Get-ChildItem "temp/" -Name
57+
foreach($type in $dmxcplug.type) { New-Item -ItemType "directory" -Path "dist/${type}/${{env.PluginName}}" }
58+
foreach($type in $dmxcplug.type) { Get-ChildItem "bin/Release" -Name | where {$filter -NotContains $_} | %{ Copy-Item -Path "bin/Release/${_}" -Destination "dist/${type}/${{env.PluginName}}/${_}"} }
59+
}
5460
foreach ($folder in Get-ChildItem -Directory) {
5561
If(Test-Path -Path $folder/dmxcplug.json) {
5662
$dmxcplug = (Get-Content "${folder}/dmxcplug.json" | ConvertFrom-Json)

0 commit comments

Comments
 (0)