mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-07 05:42:42 +08:00
fix build
This commit is contained in:
48
.github/workflows/build-windows.yml
vendored
Normal file
48
.github/workflows/build-windows.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Build Moviepilot-Frontend Windows
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- package.json
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Release version
|
||||
id: release_version
|
||||
run: |
|
||||
frontend_version=$(jq -r '.version' package.json)
|
||||
echo "frontend_version=v$frontend_version" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Build frontend
|
||||
id: build_frontend
|
||||
run: |
|
||||
yarn
|
||||
yarn build
|
||||
npm i -g pkg
|
||||
yarn pkg
|
||||
|
||||
- name: Generate Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ env.frontend_version }}-win
|
||||
name: ${{ env.frontend_version }}-win
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: |
|
||||
dist/MoviePilot-Frontend.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build moviepilot frontend
|
||||
name: Build Moviepilot-Frontend
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -33,8 +33,6 @@ jobs:
|
||||
yarn
|
||||
yarn build
|
||||
zip -r dist.zip dist
|
||||
npm i -g pkg
|
||||
yarn pkg
|
||||
|
||||
- name: Generate Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
@@ -45,6 +43,5 @@ jobs:
|
||||
prerelease: false
|
||||
files: |
|
||||
dist.zip
|
||||
dist/MoviePilot-Frontend.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user