From b88df856e429d488f860306588df5dc50c4df8e2 Mon Sep 17 00:00:00 2001 From: MKStoler Date: Tue, 17 Dec 2024 23:57:50 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B1=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 2 +- .github/workflows/inactive.yaml | 2 +- .github/workflows/prbuild.yaml | 2 +- .github/workflows/publish.yaml | 15 ++++++--------- .github/workflows/similarity.yaml | 2 +- 5 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 278c0c5..ddb0696 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build and Package Electron App +name: 推送时构建 on: push: diff --git a/.github/workflows/inactive.yaml b/.github/workflows/inactive.yaml index b3f77fe..11292fc 100644 --- a/.github/workflows/inactive.yaml +++ b/.github/workflows/inactive.yaml @@ -1,4 +1,4 @@ -name: Close inactive issues +name: 关闭不活跃 Issue 和 Pull Request on: workflow_dispatch: diff --git a/.github/workflows/prbuild.yaml b/.github/workflows/prbuild.yaml index a8df92d..0e0d217 100644 --- a/.github/workflows/prbuild.yaml +++ b/.github/workflows/prbuild.yaml @@ -1,4 +1,4 @@ -name: Check and Build Program +name: 检查 Pull Request 内容 on: pull_request: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d656a2e..4df80ba 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,4 +1,4 @@ -name: Release Build and Package +name: 发布版本时构建应用 on: release: @@ -16,28 +16,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4.1.7 - if: github.event.release.prerelease == false || matrix.os == 'windows-latest' - name: Set up Node.js uses: actions/setup-node@v4 - if: github.event.release.prerelease == false || matrix.os == 'windows-latest' with: node-version: ${{ matrix.node-version }} - name: Install dependencies run: yarn install - if: github.event.release.prerelease == false || matrix.os == 'windows-latest' - name: Build and package for Windows - if: github.event.release.prerelease == false && matrix.os == 'windows-latest' + if: matrix.os == 'windows-latest' run: yarn build:win - name: Build and package for macOS - if: github.event.release.prerelease == true && matrix.os == 'macos-latest' + if: matrix.os == 'macos-latest' run: yarn build:mac - name: Build and package for Linux - if: github.event.release.prerelease == true && matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' run: yarn build:linux - name: Upload artifact for Windows @@ -48,14 +45,14 @@ jobs: path: dist/*.exe - name: Upload artifact for macOS - if: github.event.release.prerelease == true && matrix.os == 'macos-latest' + if: matrix.os == 'macos-latest' uses: actions/upload-artifact@v4 with: name: ExamShowboard-macOS path: dist/*.dmg - name: Upload artifact for Linux - if: github.event.release.prerelease == true && matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v4 with: name: ExamShowboard-Linux diff --git a/.github/workflows/similarity.yaml b/.github/workflows/similarity.yaml index f6eb6cc..3a6a323 100644 --- a/.github/workflows/similarity.yaml +++ b/.github/workflows/similarity.yaml @@ -1,4 +1,4 @@ -name: Issues Similarity Analysis +name: 相似 Issues 分析 on: issues: