#!/usr/bin/env bash # create-release.sh — create a Gitea release and attach dist/ assets. # # Required env vars (set by the workflow): # GITEA_TOKEN Gitea API token with release write scope # TAG_NAME tag name (e.g. v0.0.1-beta) # API_URL Gitea API base URL (e.g. http://gitea.local/api/v1) # REPOSITORY owner/repo # SHA commit SHA the tag points at set -euo pipefail PAYLOAD=$(cat <