build frontend

This commit is contained in:
jxxghp
2023-06-30 14:08:46 +08:00
parent ed38fa487f
commit 333e347aef
3 changed files with 42 additions and 3 deletions

View File

@ -18,6 +18,26 @@ jobs:
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp")
echo "app_version=$app_version" >> $GITHUB_ENV
-
name: Build frontend
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
git clone https://github.com/jxxghp/MoviePilot-Frontend
cd MoviePilot-Frontend
yarn
yarn build
cd ..
mkdir -p public
cp -f ./MoviePilot-Frontend/dist/* ./public/
rm -rf MoviePilot-Frontend
-
name: Set Up QEMU
uses: docker/setup-qemu-action@v1