From 831c2e00e1d6fc1e4fb7acb1ea22e957def79be7 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Tue, 11 Jun 2019 19:19:52 -0500 Subject: [PATCH] switched to Get-ChildItem piped to Copy-Item --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index c65fe7d7..29cd60b1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -81,8 +81,10 @@ before_deploy: cd origin_site # make things a bit easier $tagPath = "tags/$env:APPVEYOR_REPO_TAG_NAME" + $source = "." New-Item -ItemType directory -Path $tagPath - Copy-Item -Path * -Destination $tagPath -Exclude ".git,tags/*" -Recurse + Get-ChildItem $source -Recurse -Exclude @('.git','tags/*','tags') | + Copy-Item -Destination {Join-Path $tagPath $_.FullName.Substring($source.length)} cd .. # fix working directory