1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 19:47:45 +00:00
alejandra/front/deploy
2022-02-16 21:34:43 -05:00

17 lines
413 B
Bash
Executable file

#! /usr/bin/env bash
set -euo pipefail
wasm-pack build --target web
rm -rf node_modules/
yarn install
yarn build
git worktree remove --force 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