docs: 更新 release-android 命令环境变量名称
This commit is contained in:
@@ -11,14 +11,14 @@ Build Android APK and upload to Gitea Release for the current directory's Androi
|
||||
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`)
|
||||
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
|
||||
|
||||
Check the environment:
|
||||
|
||||
```bash
|
||||
# Check GITEA_TOKEN
|
||||
echo "GITEA_TOKEN: ${GITEA_TOKEN:+SET}"
|
||||
# Check GITEA_API_TOKEN
|
||||
echo "GITEA_API_TOKEN: ${GITEA_API_TOKEN:+SET}"
|
||||
|
||||
# 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"
|
||||
@@ -45,7 +45,7 @@ The script will:
|
||||
|
||||
## 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 tag not found: create and push the tag first
|
||||
|
||||
|
||||
Reference in New Issue
Block a user