feat(CI): 限制打包条件

This commit is contained in:
hello8693 2024-08-28 19:14:39 +08:00
parent 7a7bd9386e
commit 823d424301
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,9 @@
name: Build and Package Electron App
on: [ push ]
on:
push:
branches:
- master
jobs:
build:

View File

@ -22,14 +22,17 @@ jobs:
steps:
- name: Checkout
if: matrix.os == 'windows-latest' || github.event.release.prerelease == false
uses: actions/checkout@v4.1.7
- name: Set up Node.js
if: matrix.os == 'windows-latest' || github.event.release.prerelease == false
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
if: matrix.os == 'windows-latest' || github.event.release.prerelease == false
run: yarn install
- name: Build and package for Windows