mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
chore: Update build.yml
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user