Command Palette

Search for a command to run...

Back to skills
skill № 66192

release

How to cut an sdme release across crates.io, GitHub Releases, Fedora Copr, the Ubuntu Launchpad PPA, and the Arch AUR. Use when publishing a new sdme version…

FreeNo executable scripts
fiorixby fiorix★ 51 GitHub stars

Install release in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Releasing sdme

Channels

A release is tag-driven. Pushing a vX.Y.Z tag fans out to four channels via CI; crates.io is one manual command.

  • GitHub Releases - .github/workflows/release.yml (on v* tags): builds static musl binaries (x86_64 + aarch64 via cargo-zigbuild), deb/rpm/pkg, and creates the release. sdme upgrade reads https://api.github.com/repos/fiorix/sdme/releases/latest, so the release must succeed or clients cannot upgrade.
  • Fedora Copr (fiorix/sdme) - an SCM package (build method make_srpm) poked by the copr job in release.yml, which POSTs to Copr's custom webhook (secrets.COPR_WEBHOOK + sdme/). Copr rebuilds its configured committish (the default branch main), running .copr/Makefile -> packaging/fedora/make-srpm.sh, which vendors the crate closure and assembles a self-contained SRPM; Copr builds the RPM offline for each enabled chroot (F43/44/rawhide and CentOS Stream, x {x86_64, aarch64}). The poke makes the trigger visible in the workflow; it does not wait for the Copr build. Ordering: Copr builds main HEAD, so push main before the tag (the release procedure does) or Copr builds the previous version.
  • Ubuntu Launchpad (ppa:fiorix/sdme) - the launchpad job in release.yml: packaging/debian/make-source-package.sh <version> builds the Debian source package, signs it with the LAUNCHPAD_GPG_* secrets, and dputs it. The upload goes over authenticated SFTP when secrets.LAUNCHPAD_SSH_PRIVATE_KEY is set (a ~/.dput.cf [ppa] stanza with method = sftp, keyed by an SSH key registered on Launchpad); without the key it falls back to dput's anonymous FTP. Launchpad builds amd64 + arm64. 26.04 (resolute) only - a vendored dep is Rust edition 2024, needing rustc >= 1.85.
  • Arch AUR (sdme, sdme-bin) - the aur job in release.yml, needs: release. Renders packaging/arch/aur/<pkgbase>/PKGBUILD.in via packaging/arch/make-aur-package.sh (version from the tag, checksums from the published artifacts), test-builds each with makepkg in an archlinux:base-devel container, then pushes PKGBUILD + .SRCINFO + sdme.install to ssh://[email protected]/<pkgbase>.git using secrets.AUR_SSH_PRIVATE_KEY. The AUR has no build service: the push IS the publish and nothing is validated server-side, hence the test build. Nothing is vendored (makepkg has network, unlike the Launchpad and Copr chroots). See packaging/arch/aur/README.md.
  • crates.io - cargo publish (manual, not in CI). It is easy to forget and it has been forgotten: crates.io sat at 0.12.0 while the project shipped 0.13.0, 0.13.1 and 0.14.0.

Copr and Launchpad both build from the tag's tree (git archive), so the version must be bumped in the tagged commit.

Versions

Cargo.toml is the single source of truth. Most channels derive from it or from the tag and cannot drift:

  channel            version comes from
  ---------------------------------------------------------------
  .deb               cargo deb, reads Cargo.toml
  .rpm (release)     cargo generate-rpm, reads Cargo.toml
  .pkg.tar.zst       packaging/arch/build-pkg.sh, greps Cargo.toml
  Launchpad PPA      make-source-package.sh, from the git tag
  AUR                make-aur-package.sh, from the git tag
  Fedora Copr        Version: in packaging/fedora/sdme.spec  <- hand-written
  Debian changelog   packaging/debian/debian/changelog       <- hand-written

Only the last two are typed by a human, so only they can rot, and they did: v0.14.0 reached Copr labelled 0.13.1-1, because make-srpm.sh takes the version from the spec but builds Source0 from the current tree, so the SRPM shipped 0.14.0 code under the older version. Two things now prevent that:

  • packaging/bump-version.sh X.Y.Z rewrites all of them (Cargo.toml, Cargo.lock, the spec's Version/Release/%changelog, the Debian changelog) in one command.
  • packaging/check-versions.sh asserts they agree. It runs in the release workflow's test job, which every publishing job now depends on, and again inside make-srpm.sh. A stale version fails the release before anything is published.

Cut a release

  1. Bump the version:
    packaging/bump-version.sh X.Y.Z
    
    Then rewrite the two generated "Release X.Y.Z." changelog stubs into something a reader benefits from; the Fedora one is user-visible in dnf changelog.
  2. Guard against scratch leaks (crates.io grabs untracked, non-gitignored files):
    cargo package --list --allow-dirty | grep -iE '(^|/)dev/|draft'   # must be empty
    
  3. Commit ("bump version to X.Y.Z"), then tag and push:
    git tag vX.Y.Z && git push origin main && git push origin vX.Y.Z
    
  4. Publish the crate from a clean tree (NEVER --allow-dirty):
    cargo publish
    

Verify

  • GitHub: gh run watch <id> for the Release workflow; the release appears with sdme-{x86_64,aarch64}-linux + deb/rpm/pkg + SHA256SUMS. Confirm `gh api repos/
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the release skill do?

How to cut an sdme release across crates.io, GitHub Releases, Fedora Copr, the Ubuntu Launchpad PPA, and the Arch AUR. Use when publishing a new sdme version, bumping the version, tagging vX.Y.Z, wiring or debugging the release CI, or when a release build fails on any of those channels.

How do I install the release skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the release skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare release with