From 6706ab5acb4a217469a9df9ed430c32d9ed41ad8 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 3 Jul 2020 15:40:22 +0100 Subject: [PATCH] build/test/deploy scripts --- .gitignore | 1 + build.sh | 3 +-- deploy.sh | 6 ++++++ test.sh | 4 ++++ 4 files changed, 12 insertions(+), 2 deletions(-) mode change 100755 => 100644 build.sh create mode 100644 deploy.sh create mode 100755 test.sh diff --git a/.gitignore b/.gitignore index 3be238a..b2bf672 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /index.html /target/ /Cargo.lock +/mixsy.zip diff --git a/build.sh b/build.sh old mode 100755 new mode 100644 index a968646..82df709 --- a/build.sh +++ b/build.sh @@ -2,5 +2,4 @@ pug index.pug set -ex -wasm-pack build --target web -python3 -m http.server +wasm-pack build --target web \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..c404115 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +./build.sh + +zip -r mixsy.zip README.md index.html pkg +butler push mixsy.zip ruin/mixsy:html diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..e919893 --- /dev/null +++ b/test.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +./build.sh +python3 -m http.server