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…
by 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
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(onv*tags): builds static musl binaries (x86_64 + aarch64 via cargo-zigbuild), deb/rpm/pkg, and creates the release.sdme upgradereadshttps://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 methodmake_srpm) poked by thecoprjob inrelease.yml, which POSTs to Copr's custom webhook (secrets.COPR_WEBHOOK+sdme/). Copr rebuilds its configured committish (the default branchmain), 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 buildsmainHEAD, so pushmainbefore the tag (the release procedure does) or Copr builds the previous version. - Ubuntu Launchpad (
ppa:fiorix/sdme) - thelaunchpadjob inrelease.yml:packaging/debian/make-source-package.sh <version>builds the Debian source package, signs it with theLAUNCHPAD_GPG_*secrets, anddputs it. The upload goes over authenticated SFTP whensecrets.LAUNCHPAD_SSH_PRIVATE_KEYis set (a~/.dput.cf[ppa]stanza withmethod = 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, needingrustc >= 1.85. - Arch AUR (
sdme,sdme-bin) - theaurjob inrelease.yml,needs: release. Renderspackaging/arch/aur/<pkgbase>/PKGBUILD.inviapackaging/arch/make-aur-package.sh(version from the tag, checksums from the published artifacts), test-builds each with makepkg in anarchlinux:base-develcontainer, then pushesPKGBUILD+.SRCINFO+sdme.installtossh://[email protected]/<pkgbase>.gitusingsecrets.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). Seepackaging/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.Zrewrites all of them (Cargo.toml, Cargo.lock, the spec's Version/Release/%changelog, the Debian changelog) in one command.packaging/check-versions.shasserts they agree. It runs in the release workflow'stestjob, which every publishing job now depends on, and again insidemake-srpm.sh. A stale version fails the release before anything is published.
Cut a release
- Bump the version:
Then rewrite the two generated "Release X.Y.Z." changelog stubs into something a reader benefits from; the Fedora one is user-visible inpackaging/bump-version.sh X.Y.Zdnf changelog. - Guard against scratch leaks (crates.io grabs untracked, non-gitignored files):
cargo package --list --allow-dirty | grep -iE '(^|/)dev/|draft' # must be empty - 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 - 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 withsdme-{x86_64,aarch64}-linux+ deb/rpm/pkg + SHA256SUMS. Confirm `gh api repos/
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
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…