Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

歌词动画微调 #239

歌词动画微调

歌词动画微调 #239

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: AutoBuild
on:
push:
branches:
- main
- dev
paths-ignore:
- "README.md"
- "README_CN.md"
- ".github/workflows/**"
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: '使用 Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: '安装依赖'
run: npm install
- run: npx electron-forge import
- name: '构建静态文件'
run: npm run build
#- name: '清理没必要打包的文件(1/2)'
#run: Remove-Item -force .\src\*
#- name: '清理没必要打包的文件(2/2)'
#run: Remove-Item -force .\blurlyric\*
- name: '打包可执行文件'
run: npm run make
- name: '上传Ubuntu artifact'
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: blurlyric_ubuntu-${{ github.sha }}.deb
path: out/make/deb/x64
- name: '上传MacOS artifact'
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v3
with:
name: blurlyric_macos-${{ github.sha }}.zip
path: out/blurlyric-darwin-x64
- name: '上传Windows artifact'
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v3
with:
name: blurlyric-win32-x64-${{ github.sha }}.zip
path: out\blurlyric-win32-x64