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