mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-29 11:26:34 +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
|
name: Build and Package Electron App
|
||||||
|
|
||||||
on: [ push ]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
3
.github/workflows/publish.yaml
vendored
3
.github/workflows/publish.yaml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user