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
run: |
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 -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt update
apt-get install -y nodejs yarn
node -v
yarn --version
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
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
sudo apt-get update && sudo apt-get install -y nodejs yarn
node -v && yarn --version
git clone https://github.com/jxxghp/MoviePilot-Frontend
cd MoviePilot-Frontend
yarn
yarn build
yarn && yarn build
cd ..
mkdir -p public
cp -f ./MoviePilot-Frontend/dist/* ./public/