Skip to content

Fix release workflow uploading no assets due to build output path mismatch (#13)#14

Merged
p0dalirius merged 1 commit into
mainfrom
bugfix-release-build-output-path
May 21, 2026
Merged

Fix release workflow uploading no assets due to build output path mismatch (#13)#14
p0dalirius merged 1 commit into
mainfrom
bugfix-release-build-output-path

Conversation

@p0dalirius

Copy link
Copy Markdown
Contributor

Linked Issue

Closes #13

Root Cause

The release CI workflow had two steps using inconsistent paths:

  1. "Build Binary" wrote the compiled binary to ../build/<name> (one directory above the GitHub Actions workspace) while mkdir -p bin created an unused ./bin/. Note that go build -o auto-creates any missing parent directory, so this step succeeded without complaining.
  2. "Prepare Release Assets" then ran cp ./build/<name>-* ./release/ against the ./build/ directory inside the workspace — which did not exist, because the binary was actually written to ../build/.

As a result, ./release/ was empty when the svenstaro/upload-release-action step ran, and every release tag was published with zero attached binaries. Confirmed remotely: gh release view v1.0.0 --json assets --jq '.assets | length' returns 0. commit.yaml had the same misalignment, though it did not publish anywhere.

Fix Description

Make the build step write to ./build/ (inside the workspace) and ensure the directory exists with mkdir -p ./build. The "Prepare Release Assets" step already reads from ./build/, so the two are now consistent and the upload step receives the produced binaries. Apply the same correction to commit.yaml for parity.

How Verified

Static: the build OUTPUT_PATH (./build/...) and the packaging source path (./build/...) now agree. go build -o ./build/<name> writes the binary, cp ./build/<name>-* ./release/ copies it, and the upload step uploads ./release/<name>-*. Verified remotely that the v1.0.0 release currently has 0 assets, which is the symptom of the bug.
Runtime: end-to-end confirmation requires publishing a new release; the workflow is otherwise unchanged.

Test Coverage

None: CI workflow changes; verification will come from the next release tag. The deterministic nature of the path correction (one constant string per file) makes a test unnecessary.

Scope of Change

  • Files changed: .github/workflows/release.yaml, .github/workflows/commit.yaml
  • Submodule pointer updated: no
  • Behavioral changes outside the bug fix: none

Risk and Rollout

No source-code change; only CI configuration. Worst case if something else breaks: next release still has no assets (current state). The change is otherwise a strict improvement.

…match (#13)

The build step wrote binaries to `../build/` (parent of the workspace)
while the packaging step copied from `./build/` (inside the workspace),
so `./release/` ended up empty and the upload step attached no assets to
the GitHub release. Point both the mkdir and the OUTPUT_PATH to
`./build/` so the binary lives where the packaging step looks for it.

Mirror the same correction in commit.yaml to keep both workflows
consistent.
@p0dalirius p0dalirius self-assigned this May 21, 2026
@p0dalirius
p0dalirius merged commit 91285d3 into main May 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release workflow uploads no assets due to mismatched build output path

1 participant