build frontend

This commit is contained in:
jxxghp 2023-06-30 14:12:05 +08:00
parent 333e347aef
commit 10b26b838e

View File

@ -23,16 +23,13 @@ jobs:
id: build_brontend id: build_brontend
run: | run: |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt update sudo apt-get update && sudo apt-get install -y nodejs yarn
apt-get install -y nodejs yarn node -v && yarn --version
node -v
yarn --version
git clone https://github.com/jxxghp/MoviePilot-Frontend git clone https://github.com/jxxghp/MoviePilot-Frontend
cd MoviePilot-Frontend cd MoviePilot-Frontend
yarn yarn && yarn build
yarn build
cd .. cd ..
mkdir -p public mkdir -p public
cp -f ./MoviePilot-Frontend/dist/* ./public/ cp -f ./MoviePilot-Frontend/dist/* ./public/