diff --git a/command/release-android.md b/command/release-android.md index dd90951..11158d1 100644 --- a/command/release-android.md +++ b/command/release-android.md @@ -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