Releases
A release is a tag on a commit with a title and a description: it always points at the same state of the repository. The «Releases» tab.
In this article
Publish a release#
- Open the Releases tab and press New release.
- Tag — the version name:
v1.0,2026-09. The name cannot be taken: a tag does not move. - Title and Description — what went into the release.
- From — a branch, a tag or a commit SHA; the repository default branch by default.
- Set as a pre-release and Set as the latest release — see below.
- Publish a release — or Save draft if the builds are not ready yet.
A release has Files of this release: the files page at exactly that commit.
Drafts#
A draft is a release that is not out yet. It has no tag: the tag is created on publishing. Only people who can publish see a draft, together with its files.
- Save draft opens its page: upload the builds there.
- Edit draft — tag, ref, title, description.
- Publish creates the tag, and everyone sees the release.
- Delete draft removes it with its files; commits are not touched.
If the tag of a published release is deleted from a terminal (git push --delete origin v1.0), the
release goes back to being a draft with its files and text.
Pre-release and latest#
- Pre-release — a beta or a nightly build: published, but never the latest.
- Latest — the one
/releases/latestpoints at. It is the newest published release that is not a pre-release, unless another one is marked Set as the latest release.
The marks are changed on the release page: Release marks.
Release files#
Program builds and other files go into the release itself, not the repository — like Assets on GitHub: the history stays small and each file has a permanent link.
- Open the release page and click Upload files — several at once, up to 500 MB each.
- The Assets block shows each file with its size, download count and SHA-256 to check it, then the source archive.
- Replace puts a new file under the same name — the link stays the same.
- Edit — name and label. The label is shown instead of the name; a new name changes the link.
- Delete removes a file. Removing the release removes all its files.
Permanent links for a "Download" button in a README or on a site:
/{owner}/{repository}/releases/download/{tag}/{file}— the file of this release;/{owner}/{repository}/releases/latest/download/{file}— the same file from the latest release; a pre-release never ends up here.
A download can resume where it broke off: curl -C - -O <link>. To check a file:
sha256sum <file> — the sum must match the one on the page.
On a public repository anyone can download without signing in. Uploading and deleting is for those who can publish releases. All release files of one repository take up to 10 GB; the space used is shown under the upload button.
API#
POST /api/v1/repositories/{id}/releases—tag,title,body,ref, plusdraft,prerelease,make_latest.PATCH /api/v1/repositories/{id}/releases/{tag}— on a drafttag,ref,title,body,prerelease, anddraft: falsepublishes it; on a published releaseprereleaseandmake_latest.POST /api/v1/repositories/{id}/release-assets?tag={tag}— upload a file (the body is the file, its name in theX-File-Nameheader);&replace=1replaces the file with the same name.GETon the same address lists files; each hasdigest: "sha256:…".PATCH …/release-assets/{id}—nameandlabel;DELETE …/release-assets/{id}deletes one.
Lightweight tags#
A tag created from the terminal (git tag v1.0 && git push --tags) without a description is listed
as a lightweight tag — it has no title and no release date. Publish a release with the same
name and the tag becomes a release: title, description and files, the tag itself does not move.
Remove a release#
Remove deletes only the tag — the commit stays in history. A release with the same name cannot be published again: history would silently change for everyone who cloned the repository.
Was this helpful?