messed it up on purpose

This commit is contained in:
Ethan N. Paul 2017-08-29 16:53:55 -04:00
parent a0fe0a9f1b
commit 98952df123
2 changed files with 5 additions and 5 deletions

View File

@ -2,4 +2,4 @@ sync_website:
script:
- powershell .\deploy.ps1
tags:
- web
- bad

View File

@ -1,9 +1,9 @@
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new") {
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -Recurse -Force
}
New-Item -Path "C:\inetpub\wwwroot\" -Name "enpaul.net.new" -ItemType Directory -Force
$ExcludeExt = '*.yml', '*.ps1', '*.gitignore'
Get-ChildItem ".\" -Recurse -Exclude $ExcludeExtentions | Where-Object { ".\.git" -notcontains $_.DirectoryName } | Copy-Item -Destination "C:\inetpub\wwwroot\enpaul.net.new\"
#Copy-Item -Path .\* -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
#Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.git" -Recurse -Force
#Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitlab-ci.yml" -Force