From 98952df123d17e7863b4a60d132427c74664696b Mon Sep 17 00:00:00 2001 From: "Ethan N. Paul" Date: Tue, 29 Aug 2017 16:53:55 -0400 Subject: [PATCH] messed it up on purpose --- .gitlab-ci.yml | 2 +- deploy.ps1 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8bedb7c..3e2919c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,4 +2,4 @@ sync_website: script: - powershell .\deploy.ps1 tags: - - web + - bad diff --git a/deploy.ps1 b/deploy.ps1 index 26aef0e..69a8064 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -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