Skip to content

ci: fix broken release-create for OTP-26/27 asset upload - #11670

Open
kikofernandez wants to merge 1 commit into
erlang:maintfrom
kikofernandez:kiko/ci/fix-release-for-otp-26-27/OTP-20403
Open

kikofernandez wants to merge 1 commit into
erlang:maintfrom
kikofernandez:kiko/ci/fix-release-for-otp-26-27/OTP-20403

Conversation

@kikofernandez

Copy link
Copy Markdown
Contributor

The "Create Release for 26 and 27" step spliced two commands into one malformed invocation on the create (release-does-not-exist) path:

gh release create "${TAG}" --title "OTP ${VSN}" --latest=false \
gh release upload "${TAG}" --clobber \
   artifacts/*.tar.gz \
   artifacts/*.txt

The trailing backslash continued the create line onto the upload line, so the shell ran a single command with gh release upload ... passed as positional asset arguments to gh release create, then hit --clobber (not a valid flag for create). The command always exited non-zero, so first-time OTP-26/27 tags never produced a GitHub release or published their .tar.gz/.txt assets.

gh release create accepts asset files as positional arguments, so no separate upload is needed on the create path. Drop the stray upload command and pass the globs directly to create, mirroring the working OTP-28+ step. --latest=false is retained (26/27 must not be marked latest, unlike 28+ which uses the computed LATEST value).

The "Create Release for 26 and 27" step spliced two commands into one malformed invocation on the create (release-does-not-exist) path:

    gh release create "${TAG}" --title "OTP ${VSN}" --latest=false \
    gh release upload "${TAG}" --clobber \
       artifacts/*.tar.gz \
       artifacts/*.txt

The trailing backslash continued the `create` line onto the `upload` line, so the shell ran a single command with `gh release upload ...` passed as positional asset arguments to `gh release create`, then hit `--clobber` (not a valid flag for create). The command always exited non-zero, so first-time OTP-26/27 tags never produced a GitHub release or published their .tar.gz/.txt assets.

`gh release create` accepts asset files as positional arguments, so no separate upload is needed on the create path. Drop the stray upload command and pass the globs directly to create, mirroring the working OTP-28+ step. `--latest=false` is retained (26/27 must not be marked latest, unlike 28+ which uses the computed LATEST value).
@kikofernandez kikofernandez self-assigned this Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

  1 files   11 suites   3m 36s ⏱️
 96 tests  92 ✅ 4 💤 0 ❌
112 runs  108 ✅ 4 💤 0 ❌

Results for commit ca7a711.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants