#!/bin/sh
# Deprecated — kept as a guard so muscle-memory invocations don't silently
# do nothing.
#
# zddc-server is no longer released independently. The top-level
# `./build alpha|beta|release [version]` is the canonical lockstep cut:
# it bumps every tool (5 HTML + zddc-server) to the same version,
# cross-compiles the binaries, writes a complete release bundle to
# dist/release-output/, regenerates the index, and tags every tool.
# Run ./deploy to publish to /srv/zddc/.
#
# See AGENTS.md "Releasing — lockstep, channels, layout" for the full
# release process.

set -eu

cat >&2 <<'EOF'
zddc/release.sh is deprecated.

Use the top-level lockstep release from the repo root instead:

  ./build release            # stable, coordinated next version
  ./build release X.Y.Z      # stable, explicit version
  ./build alpha              # alpha cut for everything
  ./build beta               # beta cut for everything
  ./deploy --releases        # publish dist/release-output/ to /srv/zddc/

zddc-server binaries now ship in dist/release-output/ (gitignored,
local-only) and are deployed to /srv/zddc/releases/ on the live host.
No Codeberg release-asset publication, no LFS. See AGENTS.md
"Releasing — lockstep, channels, layout" for details.
EOF

exit 1
