Skip to content

Commit ba7a89e

Browse files
committed
fix: ensure binary and checksum artifacts are downloaded for release
1 parent e1f0211 commit ba7a89e

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.buildkite/pipeline.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ steps:
9191
.buildkite/setup-go.sh go build -ldflags="-s -w -X main.version=${VERSION}" -o builddeck ./cmd/builddeck
9292
ls -lh builddeck
9393
buildkite-agent artifact upload builddeck
94-
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then
95-
.buildkite/release.sh "${VERSION}"
96-
fi
94+
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then
95+
.buildkite/release.sh "${VERSION}"
96+
fi
97+
# Ensure the binary is available as a local file for any final steps if needed
98+
# (already uploaded as artifact, but release.sh handles the GitHub upload)
9799
secrets:
98100
- GITHUB_TOKEN
99101

.buildkite/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ cd "$(dirname "$0")/.."
1717

1818
# Download ALL artifacts from build and checksum steps
1919
echo "Downloading artifacts..."
20-
buildkite-agent artifact download "builddeck*" . --step build 2>/dev/null || true
21-
buildkite-agent artifact download "*.sha256" . --step checksum 2>/dev/null || true
22-
buildkite-agent artifact download "tag.txt" . --step tag 2>/dev/null || true
20+
buildkite-agent artifact download "builddeck" . --step build 2>/dev/null || true
21+
buildkite-agent artifact download "builddeck.sha256" . --step checksum 2>/dev/null || true
22+
buildkite-agent artifact download "builddeck.tag" . --step tag 2>/dev/null || true
2323

2424
# Debug: list what we have
2525
echo "=== Files in workspace ==="

0 commit comments

Comments
 (0)