From e74985c4828ffaae48887f04fae65e90115c9a08 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