From 9d3981e3618c65a0768d69ca918274dfeec5aa64 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Thu, 19 Oct 2023 21:33:54 +0900 Subject: [PATCH] chore: Update build.yml --- .github/workflows/build.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 948e4a52..727a839c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,21 +42,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - # Only build without release if it is a fork - - name: Build on Mac - if: startsWith(matrix.os, 'macOS') && (github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request') + # Only rollup build without release if it is a fork + - name: Rollup Build + if: github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request' run: | - pnpm build:mac - - - name: Build on Linux - if: startsWith(matrix.os, 'ubuntu') && (github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request') - run: | - pnpm build:linux - - - name: Build on Windows - if: startsWith(matrix.os, 'windows') && (github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request') - run: | - pnpm build:win + pnpm build # Build and release if it's the main repository and is not pull-request - name: Build and release on Mac