chore: Update build.yml

This commit is contained in:
JellyBrick
2023-10-19 21:33:54 +09:00
committed by GitHub
parent 787326948b
commit 9d3981e361

View File

@ -42,21 +42,11 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
# Only build without release if it is a fork # Only rollup build without release if it is a fork
- name: Build on Mac - name: Rollup Build
if: startsWith(matrix.os, 'macOS') && (github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request') if: github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request'
run: | run: |
pnpm build:mac pnpm build
- 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
# Build and release if it's the main repository and is not pull-request # Build and release if it's the main repository and is not pull-request
- name: Build and release on Mac - name: Build and release on Mac