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

3
.env.example Normal file
View File

@@ -0,0 +1,3 @@
GITEA_TOKEN=your_gitea_api_token_here
GITEA_URL=https://git.manko.yoga
REPO=manawenuz/btest-rs

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
/dist /dist
btest_original btest_original
.claude/ .claude/
.env

View File

@@ -9,8 +9,15 @@ set -euo pipefail
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
GITEA_URL="https://git.manko.yoga" # Load .env if present
REPO="manawenuz/btest-rs" 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="" UPLOAD=""
TAG="" TAG=""