docs: 更新 release-android 命令环境变量名称

This commit is contained in:
2026-01-10 03:04:01 +08:00
parent 8079ccc856
commit 6220c2647a

View File

@@ -11,14 +11,14 @@ Build Android APK and upload to Gitea Release for the current directory's Androi
Before running this command: Before running this command:
1. **Create and push the git tag first** (e.g., `myapp-1.0.0`, `android-1.0.0`, or `v1.0.0`) 1. **Create and push the git tag first** (e.g., `myapp-1.0.0`, `android-1.0.0`, or `v1.0.0`)
2. Ensure `GITEA_TOKEN` environment variable is set 2. Ensure `GITEA_API_TOKEN` environment variable is set
3. Ensure Android project exists in current directory 3. Ensure Android project exists in current directory
Check the environment: Check the environment:
```bash ```bash
# Check GITEA_TOKEN # Check GITEA_API_TOKEN
echo "GITEA_TOKEN: ${GITEA_TOKEN:+SET}" echo "GITEA_API_TOKEN: ${GITEA_API_TOKEN:+SET}"
# Check current directory for Android project # Check current directory for Android project
ls -la app/build.gradle.kts 2>/dev/null || ls -la android/app/build.gradle.kts 2>/dev/null || echo "No Android project found" ls -la app/build.gradle.kts 2>/dev/null || ls -la android/app/build.gradle.kts 2>/dev/null || echo "No Android project found"
@@ -45,7 +45,7 @@ The script will:
## Error Handling ## Error Handling
- If `GITEA_TOKEN` is not set: `export GITEA_TOKEN="your_token"` - If `GITEA_API_TOKEN` is not set: `export GITEA_API_TOKEN="your_token"`
- If build fails: check Java/Android SDK installation - If build fails: check Java/Android SDK installation
- If tag not found: create and push the tag first - If tag not found: create and push the tag first