Vole docs Source

Releases#

Use a release to pair an annotated Git tag with Markdown notes, source archives, and downloadable build outputs. The tag and notes travel with clones; attachment pointers live on the vole branch and their bytes remain in instance storage.

Start from a repository clone. You need maintainer access to create and manage a release.

Create a release#

Create an annotated tag with release notes, then push it:

vole release create v1.0.0 -m "First stable release."
git push --follow-tags

Use -F <file> instead of -m to read longer Markdown notes from a file. release create refuses to overwrite an existing tag.

Plain Git creates the same kind of release:

git tag -a v1.0.0 -m "First stable release."
git push --follow-tags

Use an annotated tag. A lightweight tag appears in the release list but has no tag message or tagger and cannot carry attached files.

In the browser, Releases → New release provides the same fields and creates an annotated tag with the signed-in account as tagger.

Attach build outputs#

Push the tag first, then attach files from your build. A file keeps its base name:

vole release attach v1.0.0 dist/vole-linux-amd64 dist/vole-linux-arm64

Attach a directory to preserve its relative paths. The directory becomes the release root:

vole release attach v1.0.0 dist

For example, attaching dist/ publishes dist/apt/Packages as apt/Packages. Attaching dist/apt/ instead publishes Packages at the release root. Use this layout for package repositories or other multi-file downloads.

Vole uploads the bytes into shared storage and writes attachment pointers to the vole branch. It refuses a pointer without an uploaded object, so a published download cannot point at a missing file. Attaching identical content again reuses the stored object.

A maintainer can also use Manage files on the release page. Browser uploads use the same pointers and are bounded by the instance's per-object limit; attach a larger set from the CLI.

Download releases and files#

Each release page provides source archives and its attached files. You can also construct their URLs directly:

curl -O https://forge.example.com/demo/releases/v1.0.0/artifacts/vole-linux-amd64
curl -O https://forge.example.com/demo/releases/v1.0.0/archive.tar
curl -OJ https://forge.example.com/demo/releases/v1.0.0/archive.tar.gz

Downloads support conditional requests and byte ranges for resuming large files. Anonymous visitors receive 404 for releases in private repositories.

Vole generates source archives from the tagged tree on request. If the repository uses Git LFS, the archive contains the stored large-file contents, not LFS pointer files.

Publish a stable channel#

A channel is a stable URL that points to one annotated release. Move it when you want users to receive a newer release:

vole release channel set stable v1.0.0 -m "Recommended for production"
vole release channel list

The channel page redirects to its target release. Paths below the channel serve that release's files, so this URL keeps working when the channel moves:

curl -O https://forge.example.com/demo/channels/stable/vole-linux-amd64

Channels are useful for package repositories too. Vole does not interpret apt, yum, or pacman metadata; it serves the attached directory layout at the channel URL. Install shows how Vole's own stable channel becomes a package source.

Clear a channel without deleting its target release or files:

vole release channel clear stable

Channel names use lowercase letters, digits, and dashes. Moving or clearing a channel requires maintainer access and is recorded in the audit log. Channels are server-side state in data/instance.db, not Git refs, so include them in an instance backup.

A channel freezes its target

While a channel targets a release, Vole refuses ordinary changes to that release's notes and files. Move the channel to another release before editing it. A repository admin can override the freeze, and Vole records that override in the audit log. A missing target, or a tag object that no longer matches the recorded target, makes the channel dangling and returns 404.

Edit a release or remove files#

Use Edit release in the browser to revise an annotated tag's notes. Editing the notes re-tags the same source commit, which changes the tag object. A clone that already fetched the old tag needs this command to fetch the new object:

git fetch --tags --force

Remove attached files by their published paths:

vole release remove v1.0.0 old-notes.txt
vole release remove v1.0.0 apt/Packages apt/Packages.gz

Removal deletes only the attachment pointer; release notes and source are untouched. The bytes become collectable after the garbage collector's grace period. The browser's Manage files page applies the same rules, including the channel freeze.

Build a release in CI#

A tag workflow can attach build outputs with release: true:

artifacts:
  - path: dist/*
    release: true

A glob publishes paths relative to its static root. A directory publishes its tree relative to that directory, just like vole release attach. The workflow writes the same attachment pointers as the CLI.

See Build a release for a complete tag trigger and job.

Next#

↑↓ to move Enter to open Esc to close