|
98 | 98 | fi
|
99 | 99 |
|
100 | 100 | - name: (not check) Upload server to release
|
101 |
| - if: ${{ !contains(github.ref_name, 'check') }} |
| 101 | + if: ${{ !contains(github.ref_name, 'check') && github.event.release.upload_url != ''}} |
102 | 102 |
|
103 | 103 | env:
|
104 | 104 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -138,7 +138,7 @@ jobs:
|
138 | 138 | fi
|
139 | 139 |
|
140 | 140 | - name: (GHC 8.10, not check) Upload wrapper to the release
|
141 |
| - if: ${{ matrix.ghc == '8.10.7' && !contains(github.ref_name, 'check') }} |
| 141 | + if: ${{ matrix.ghc == '8.10.7' && !contains(github.ref_name, 'check') && github.event.release.upload_url != '' }} |
142 | 142 |
|
143 | 143 | env:
|
144 | 144 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -172,7 +172,7 @@ jobs:
|
172 | 172 | HEAD
|
173 | 173 |
|
174 | 174 | - name: (not check) Upload source tarball to the release
|
175 |
| - if: ${{ !contains(github.ref_name, 'check') }} |
| 175 | + if: ${{ !contains(github.ref_name, 'check') && github.event.release.upload_url != '' }} |
176 | 176 |
|
177 | 177 | env:
|
178 | 178 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -219,7 +219,7 @@ jobs:
|
219 | 219 | tar -czpf haskell-language-server.tar.gz *
|
220 | 220 |
|
221 | 221 | - name: (not check) Upload binaries tarball to the release
|
222 |
| - if: ${{ !contains(github.ref_name, 'check') }} |
| 222 | + if: ${{ !contains(github.ref_name, 'check') && github.event.release.upload_url != '' }} |
223 | 223 |
|
224 | 224 | env:
|
225 | 225 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -248,7 +248,7 @@ jobs:
|
248 | 248 | sed -i 's/\/.*)/)/g' SHA256SUMS
|
249 | 249 |
|
250 | 250 | - name: (not check) Upload sha256sums to the release
|
251 |
| - if: ${{ !contains(github.ref_name, 'check') }} |
| 251 | + if: ${{ !contains(github.ref_name, 'check') && github.event.release.upload_url != '' }} |
252 | 252 |
|
253 | 253 | env:
|
254 | 254 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
0 commit comments