Files
mudmouth/scripts/publish-release.sh
T
pleb 7d659167bd
CI / macos-latest (push) Has been cancelled
CI / ubuntu-latest (push) Has been cancelled
CI / windows-latest (push) Has been cancelled
Prepare v0.0.3 release
2026-07-29 11:08:22 -07:00

34 lines
957 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
version=$(awk -F '"' '$1 ~ /^version = / { print $2; exit }' Cargo.toml)
tag="v${version}"
dist=dist
checksums="$dist/SHA256SUMS.txt"
notes=$(mktemp)
trap 'rm -f "$notes"' EXIT
[[ -f "$checksums" ]] || { echo "Missing $checksums; run scripts/package-release.sh first." >&2; exit 1; }
cat > "$notes" <<EOF
## Classic NPC voice mapping
Mudmouth now maps classic NPCs from their recorded characteristics, helping
newly encountered NPCs start with a more fitting curated voice selection.
The compact mapping is built into the app, so it requires no separate download.
## SHA-256
\`\`\`
$(cat "$checksums")
\`\`\`
EOF
for asset in "$dist"/mudmouth-v"$version"-*.tar.gz "$dist"/mudmouth-v"$version"-*.zip "$checksums"; do
"$HOME/.agents/skills/publish-gitea-release/scripts/gitea-publish-asset.sh" \
--tag "$tag" \
--asset "$asset" \
--title "Mudmouth $tag (pre-release)" \
--body-file "$notes"
done