Add a deploy script.
[rup.git] / deploy.ps1
diff --git a/deploy.ps1 b/deploy.ps1
new file mode 100755 (executable)
index 0000000..5edd2a4
--- /dev/null
@@ -0,0 +1,14 @@
+git pull
+cargo build --release
+
+$destination=$args[0]
+
+if (!(Test-Path -Path $destination)) {
+   New-Item -ItemType directory -Path $destination
+}
+
+Copy-Item target/release/rup -Destination $destination
+Copy-Item key.secret -Destination $destination
+Copy-Item conf.ron -Destination $destination
+Copy-Item static -Destination $destination -Recurse -Force
+