mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-29 06:46:35 +00:00
feat(CI): 限制打包条件
This commit is contained in:
parent
7a7bd9386e
commit
823d424301
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@ -1,6 +1,9 @@
|
||||
name: Build and Package Electron App
|
||||
|
||||
on: [ push ]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
3
.github/workflows/publish.yaml
vendored
3
.github/workflows/publish.yaml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user