1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 04:27:45 +00:00

feat: relative path and deploy script

This commit is contained in:
Kevin Amado 2022-02-13 14:04:50 -05:00
parent c4795c6d6d
commit 865ec5231c
No known key found for this signature in database
GPG key ID: FFF341057F503148
2 changed files with 16 additions and 0 deletions

15
front/deploy Executable file
View file

@ -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