From 7d73b5c045eb5cd1d707e9bad84e7179461d3030 Mon Sep 17 00:00:00 2001 From: "Ethan N. Paul" Date: Tue, 29 Aug 2017 15:51:53 -0400 Subject: [PATCH] Gave up and added ps script for fucker --- .gitlab-ci.yml | 6 +----- deploy.ps1 | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 deploy.ps1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 368641b..16974d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,5 @@ sync_website: script: - - powershell | New-Item -Path "C:\inetpub\wwwroot\" -Name enpaul.net.new -ItemType Directory -Force - - powershell | Copy-Item -Path .\* -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse - - powershell | Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force - - powershell | Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force - - powershell | Remove-Item -path "C:\inetpub\wwwroot\enpaul.net.old" -Recurse -Force + - .\deploy.ps1 tags: - web diff --git a/deploy.ps1 b/deploy.ps1 new file mode 100644 index 0000000..2de6ec6 --- /dev/null +++ b/deploy.ps1 @@ -0,0 +1,5 @@ +New-Item -Path "C:\inetpub\wwwroot\" -Name enpaul.net.new -ItemType Directory -Force +Copy-Item -Path .\* -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse +Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force +Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force +Remove-Item -path "C:\inetpub\wwwroot\enpaul.net.old" -Recurse -Force