#!/usr/bin/env bash # # Upload a release # # Needs the gh tool from https://github.com/cli/cli set -e REPO="rclone/rclone" if [ "$1" == "" ]; then echo "Syntax: $0 Version" exit 1 fi VERSION="$1" ANCHOR=$(grep '^## v' docs/content/changelog.md | head -n 1 | sed 's/^## //; s/[^A-Za-z0-9-]/-/g; s/--*/-/g') cat > "/tmp/${VERSION}-release-notes" <