Skip to content

Releases

A release is a git tag with a title, release notes and downloadable files (assets). Releases are read with the same permissions as the repository. On a public repository anyone can see them. On a private one only the people who can read the code can, unless you turn on public releases.

The tag must already exist in the repository. neo release create creates the release as a draft, uploads each file, then publishes it:

Terminal window
neo release create v1.2.0 dist/app-linux-x86_64.tar.gz dist/app-macos.zip \
--title "1.2.0" --notes-from CHANGELOG.md

Pass --draft to stop before publishing and neo release publish v1.2.0 when you are ready. A draft is visible only to people who can write to the repository. neo release list and neo release view <tag> read them back. The neo release reference lists every option.

Every published asset has a stable URL on the repository’s path:

https://neosource.dev/{owner}/{repo}/releases/download/{tag}/{file}
https://neosource.dev/{owner}/{repo}/releases/latest/download/{file}
https://neosource.dev/{owner}/{repo}/releases/rolling/download/{file}

latest is the newest published release that is neither a prerelease nor the rolling release. rolling is the repository’s single moving release (neo release create --rolling), whose assets are replaced in place.

The URL answers with a redirect to the file. For an asset anyone may read, the redirect is a plain, publicly cacheable URL. Otherwise it is a short-lived signed URL, so curl -H "Authorization: Bearer $TOKEN" -L <url> works for a private repository: a token with the repo:read scope reads releases.

A private or internal repository can publish its releases to everyone while its code stays private, for example a closed-source tool with public downloads.

Turn it on under Settings → General → Public releases. Only a repository admin can change it.

While it is on, anyone, signed in or not, can see:

  • each published release’s tag, title and release notes;
  • its assets, through the download URLs above, unsigned and publicly cached.

Everything else stays private:

  • the code, the commit history, trees, archives and the repository’s tag list;
  • the commit each release points at: a reader who cannot read the code gets target_commit: null from the releases API;
  • drafts, which remain visible only to people who can write to the repository.

While this is on, write release notes for a public audience, because anyone can read them.

Turning it off makes the releases private again at once, but an asset already downloaded while releases were public can stay in public caches.

On a public repository the setting has no effect, because its releases are already public. It is kept, and takes effect if the repository becomes private or internal.