From 6220c2647ab83ca82f899922d06ddfa32a9540aa Mon Sep 17 00:00:00 2001 From: voson Date: Sat, 10 Jan 2026 03:04:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20release-android=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- command/release-android.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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