Skip to content

Commit 1e8d0e5

Browse files
committed
CI: add delay to avoid multiple release uploads
1 parent f08b0f0 commit 1e8d0e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ jobs:
196196
test -f ./remoteAudio && chmod +x ./remoteAudio #only on linux & darwin needed
197197
zip -j remoteAudio-${{ env.VERSION_TAG }}-${{ matrix.OS }}-${{ matrix.ARCH }}.zip ./*
198198
199+
- name: Sleep to avoid multiple releases with the same tag
200+
run: |
201+
RANDOM_DELAY=$(( ( RANDOM % 60 ) + 1 ))
202+
sleep $RANDOM_DELAY
203+
199204
# Finally upload the artifact to the corresponding release
200205
- name: Create Release
201206
id: create_release

0 commit comments

Comments
 (0)