Add .env support for release scripts, add .env.example
All checks were successful
CI / test (push) Successful in 1m6s
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:
3
.env.example
Normal file
3
.env.example
Normal 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
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
/dist
|
/dist
|
||||||
btest_original
|
btest_original
|
||||||
.claude/
|
.claude/
|
||||||
|
.env
|
||||||
|
|||||||
@@ -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=""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user