mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 03:27:54 +08:00
fix build
This commit is contained in:
@@ -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 }}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Build moviepilot frontend
|
name: Build Moviepilot-Frontend
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -33,8 +33,6 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
yarn build
|
yarn build
|
||||||
zip -r dist.zip dist
|
zip -r dist.zip dist
|
||||||
npm i -g pkg
|
|
||||||
yarn pkg
|
|
||||||
|
|
||||||
- name: Generate Release
|
- name: Generate Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@@ -45,6 +43,5 @@ jobs:
|
|||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
dist.zip
|
dist.zip
|
||||||
dist/MoviePilot-Frontend.exe
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user