Prepare v0.0.2 pre-release
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
version=$(sed -n 's/^version = "\\([^"]*\\)"/\\1/p' Cargo.toml | head -n 1)
|
||||
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
|
||||
## Pre-release
|
||||
|
||||
First multi-platform pre-release of Mudmouth. It includes first-run EverQuest
|
||||
log discovery, setup, and the refreshed development documentation.
|
||||
|
||||
## 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
|
||||
Reference in New Issue
Block a user