Skip to content

Commit 95d9abe

Browse files
committed
Skip upload to the release
1 parent 05115c8 commit 95d9abe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
fi
9999
100100
- 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 != ''}}
102102
uses: actions/[email protected]
103103
env:
104104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -138,7 +138,7 @@ jobs:
138138
fi
139139
140140
- 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 != '' }}
142142
uses: actions/[email protected]
143143
env:
144144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -172,7 +172,7 @@ jobs:
172172
HEAD
173173
174174
- 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 != '' }}
176176
uses: actions/[email protected]
177177
env:
178178
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -219,7 +219,7 @@ jobs:
219219
tar -czpf haskell-language-server.tar.gz *
220220
221221
- 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 != '' }}
223223
uses: actions/[email protected]
224224
env:
225225
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -248,7 +248,7 @@ jobs:
248248
sed -i 's/\/.*)/)/g' SHA256SUMS
249249
250250
- 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 != '' }}
252252
uses: actions/[email protected]
253253
env:
254254
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)