Skip to content

Commit 1814ec7

Browse files
committed
ci: Use --clobber for release asset uploads
Allows workflow re-runs to replace existing assets instead of failing when an asset with the same name already exists.
1 parent 0f9dc60 commit 1814ec7

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/gnd-binary-build.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,12 @@ jobs:
157157
VERSION=${GITHUB_REF#refs/tags/}
158158
159159
# Upload Linux x86_64 asset
160-
gh release upload $VERSION artifacts/gnd-linux-x86_64/gnd-linux-x86_64.gz --repo $GITHUB_REPOSITORY
161-
162-
# Upload Linux ARM64 asset
163-
gh release upload $VERSION artifacts/gnd-linux-aarch64/gnd-linux-aarch64.gz --repo $GITHUB_REPOSITORY
164-
165-
# Upload macOS x86_64 asset
166-
gh release upload $VERSION artifacts/gnd-macos-x86_64/gnd-macos-x86_64.gz --repo $GITHUB_REPOSITORY
167-
168-
# Upload macOS ARM64 asset
169-
gh release upload $VERSION artifacts/gnd-macos-aarch64/gnd-macos-aarch64.gz --repo $GITHUB_REPOSITORY
170-
171-
# Upload Windows x86_64 asset
172-
gh release upload $VERSION artifacts/gnd-windows-x86_64.exe/gnd-windows-x86_64.exe.zip --repo $GITHUB_REPOSITORY
160+
gh release upload $VERSION --clobber --repo $GITHUB_REPOSITORY \
161+
artifacts/gnd-linux-x86_64/gnd-linux-x86_64.gz \
162+
artifacts/gnd-linux-aarch64/gnd-linux-aarch64.gz \
163+
artifacts/gnd-macos-x86_64/gnd-macos-x86_64.gz \
164+
artifacts/gnd-macos-aarch64/gnd-macos-aarch64.gz \
165+
artifacts/gnd-windows-x86_64.exe/gnd-windows-x86_64.exe.zip
173166
env:
174167
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175168

0 commit comments

Comments
 (0)