|
1 | | -name: Build YouTube Music |
| 1 | +name: Build Pear Desktop |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | build: |
13 | | - name: Build YouTube Music |
| 13 | + if: github.event.pull_request.draft == false |
| 14 | + name: Build Pear Desktop |
14 | 15 | runs-on: ${{ matrix.os }} |
15 | 16 | strategy: |
16 | 17 | fail-fast: true |
@@ -44,20 +45,20 @@ jobs: |
44 | 45 |
|
45 | 46 | # Only vite build without release if it is a fork, or it is a pull-request |
46 | 47 | - name: Vite Build |
47 | | - if: github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request' |
| 48 | + if: github.repository == 'pear-devs/pear-desktop' && github.event_name == 'pull_request' |
48 | 49 | run: | |
49 | 50 | pnpm build |
50 | 51 |
|
51 | 52 | # Build and release if it's the main repository and is not pull-request |
52 | 53 | - name: Build and release on Mac |
53 | | - if: startsWith(matrix.os, 'macOS') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') |
| 54 | + if: startsWith(matrix.os, 'macOS') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') |
54 | 55 | env: |
55 | 56 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
56 | 57 | run: | |
57 | 58 | pnpm release:mac |
58 | 59 |
|
59 | 60 | - name: Build and release on Linux |
60 | | - if: startsWith(matrix.os, 'ubuntu') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') |
| 61 | + if: startsWith(matrix.os, 'ubuntu') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') |
61 | 62 | env: |
62 | 63 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
63 | 64 | run: | |
|
71 | 72 | pnpm release:linux |
72 | 73 |
|
73 | 74 | - name: Build and release on Windows |
74 | | - if: startsWith(matrix.os, 'windows') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') |
| 75 | + if: startsWith(matrix.os, 'windows') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') |
75 | 76 | env: |
76 | 77 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
77 | 78 | run: | |
|
87 | 88 |
|
88 | 89 | release: |
89 | 90 | runs-on: ubuntu-latest |
90 | | - name: Release YouTube Music |
91 | | - if: github.repository == 'th-ch/youtube-music' && github.ref == 'refs/heads/master' |
| 91 | + name: Release Pear Desktop |
| 92 | + if: github.repository == 'pear-devs/pear-desktop' && github.ref == 'refs/heads/master' |
92 | 93 | needs: build |
93 | 94 | steps: |
94 | 95 | - uses: actions/checkout@v5 |
@@ -149,11 +150,11 @@ jobs: |
149 | 150 | name: ${{ env.VERSION_TAG }} |
150 | 151 | replacebody: true |
151 | 152 | body: | |
152 | | - See [changelog](https://github.com/th-ch/youtube-music/blob/master/changelog.md#${{ env.CHANGELOG_ANCHOR }}) for the list of updates and the full diff. |
| 153 | + See [changelog](https://github.com/pear-devs/pear-desktop/blob/master/changelog.md#${{ env.CHANGELOG_ANCHOR }}) for the list of updates and the full diff. |
153 | 154 |
|
154 | 155 | Thanks to all contributors! 🏅 |
155 | 156 |
|
156 | | - (Note for Windows: `YouTube-Music-Web-Setup-${{ env.VERSION_TAG }}.exe` is an installer, and `YouTube-Music-${{ env.VERSION_TAG }}.exe` is a portable version) |
| 157 | + (Note for Windows: `Pear-Desktop-Web-Setup-${{ env.VERSION_TAG }}.exe` is an installer, and `Pear-Desktop-${{ env.VERSION_TAG }}.exe` is a portable version) |
157 | 158 |
|
158 | 159 | - name: Update changelog |
159 | 160 | if: ${{ env.VERSION_HASH == '' }} |
|
0 commit comments