# 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.

> **Who can use this:** Publishing, editing and removing releases requires write access.

## Publish a release

1. Open the **Releases** tab and press **New release**.
2. **Tag** — the version name: `v1.0`, `2026-09`. The name cannot be taken: a tag does not move.
3. **Title** and **Description** — what went into the release.
4. **From** — a branch, a tag or a commit SHA; the repository default branch by default.
5. **Set as a pre-release** and **Set as the latest release** — see below.
6. **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.

1. **Save draft** opens its page: upload the builds there.
2. **Edit draft** — tag, ref, title, description.
3. **Publish** creates the tag, and everyone sees the release.
4. **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/latest` points 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.

1. Open the release page and click **Upload files** — several at once, up to 500 MB each.
2. The **Assets** block shows each file with its size, download count and **SHA-256** to check it,
   then the source archive.
3. **Replace** puts a new file under the same name — the link stays the same.
4. **Edit** — name and label. The label is shown instead of the name; a new name changes the link.
5. **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`, plus `draft`,
  `prerelease`, `make_latest`.
- `PATCH /api/v1/repositories/{id}/releases/{tag}` — on a draft `tag`, `ref`, `title`, `body`,
  `prerelease`, and `draft: false` publishes it; on a published release `prerelease` and
  `make_latest`.
- `POST /api/v1/repositories/{id}/release-assets?tag={tag}` — upload a file (the body is the file,
  its name in the `X-File-Name` header); `&replace=1` replaces the file with the same name.
- `GET` on the same address lists files; each has `digest: "sha256:…"`.
- `PATCH …/release-assets/{id}` — `name` and `label`; `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.

---

https://skillok.org/docs/en/repositories/releases
