Add .env support for release scripts, add .env.example
All checks were successful
CI / test (push) Successful in 1m6s

Scripts now source .env automatically for GITEA_TOKEN and other config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-31 14:35:14 +04:00
parent fd148acffe
commit 67ff26b5f8
3 changed files with 13 additions and 2 deletions

View File

@@ -9,8 +9,15 @@ set -euo pipefail
cd "$(dirname "$0")/.."
GITEA_URL="https://git.manko.yoga"
REPO="manawenuz/btest-rs"
# Load .env if present
if [[ -f .env ]]; then
set -a
source .env
set +a
fi
GITEA_URL="${GITEA_URL:-https://git.manko.yoga}"
REPO="${REPO:-manawenuz/btest-rs}"
UPLOAD=""
TAG=""