aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build.zig13
1 files changed, 12 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index efbfafd..11898e4 100644
--- a/build.zig
+++ b/build.zig
@@ -14,5 +14,16 @@ pub fn build(b: *std.Build) void {
run_server.dependOn(&serve.step);
const publish_to_prod = b.step("publish", "Publish the website to production");
- publish_to_prod.dependOn(b.getInstallStep());
+ const copy_bundle = b.addSystemCommand(&.{"scp"});
+ copy_bundle.step.dependOn(b.getInstallStep());
+ copy_bundle.addFileArg(b.path("html-out/pages.tar.gz"));
+ copy_bundle.addArg("debian@www.eviltransgenders.club:pages.tar.gz");
+
+ const unpack_bundle = b.addSystemCommand(&.{
+ "ssh",
+ "debian@www.eviltransgenders.club",
+ "cp pages.tar.gz /var/www/www.eviltransgenders.club && cd /var/www/www.eviltransgenders.club && tar -xvf /var/www/www.eviltransgenders.club/pages.tar.gz"
+ });
+ unpack_bundle.step.dependOn(&copy_bundle.step);
+ publish_to_prod.dependOn(&unpack_bundle.step);
}