From 823d424301c52f7121f3e21534d1263fc3f5c0c6 Mon Sep 17 00:00:00 2001 From: hello8693 <1320998105@qq.com> Date: Wed, 28 Aug 2024 19:14:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(CI):=20=E9=99=90=E5=88=B6=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 5 ++++- .github/workflows/publish.yaml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f3770e8..1350852 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,9 @@ name: Build and Package Electron App -on: [ push ] +on: + push: + branches: + - master jobs: build: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7e5028b..198eb93 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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