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 name: Build and Package Electron App
on: [ push ] on:
push:
branches:
- master
jobs: jobs:
build: build:

View File

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