From 865ec5231c6b5149cacc4fd4ef5fc3a726354d77 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sun, 13 Feb 2022 14:04:50 -0500 Subject: [PATCH] feat: relative path and deploy script --- front/deploy | 15 +++++++++++++++ front/package.json | 1 + 2 files changed, 16 insertions(+) create mode 100755 front/deploy diff --git a/front/deploy b/front/deploy new file mode 100755 index 0000000..8fe75d1 --- /dev/null +++ b/front/deploy @@ -0,0 +1,15 @@ +#! /usr/bin/env bash + +set -euo pipefail + +wasm-pack build --target web +yarn build + +git worktree remove worktree || true +git worktree add -B front worktree +git -C worktree reset --hard 6adfbe8516bf6d9e896534e01118e1bc41f65425 +cp -rT ./build/ ./worktree/ + +git -C worktree add . +git -C worktree commit -m "feat: deploy website" +git -C worktree push --force origin HEAD:front diff --git a/front/package.json b/front/package.json index 27a1753..daa839c 100644 --- a/front/package.json +++ b/front/package.json @@ -21,6 +21,7 @@ "react-wasm": "^1.0.1", "tachyons": "^4.12.0" }, + "homepage": "https://kamadorueda.github.io/alejandra", "name": "front", "private": true, "scripts": {