From 5a761fea0a1e6ca012274c3b6f65b37cf1c3e598 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Jul 2026 08:58:04 +0000 Subject: [PATCH] ci: publish a GitHub Release with the APK on version tags Actions artifacts expire and aren't a stable download link. Add a tag trigger (v*) that, after the build, publishes a GitHub Release with the signed APKs attached via softprops/action-gh-release, using the repo's default GITHUB_TOKEN. Bump versionCode/versionName to 9/2.0.2 for the first tagged release. --- .github/workflows/build-apk.yml | 11 +++++++++++ app/build.gradle.kts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index fe22526..64f584e 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -5,11 +5,15 @@ on: branches: - main - claude/main-bugs-review-nd8dax + tags: + - "v*" workflow_dispatch: jobs: build: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v4 @@ -48,3 +52,10 @@ jobs: name: TurnProxy-apk path: app/build/outputs/apk/release/*.apk if-no-files-found: error + + - name: Publish GitHub Release + if: startsWith(github.ref, 'refs/tags/v') + uses: softprops/action-gh-release@v2 + with: + files: app/build/outputs/apk/release/*.apk + generate_release_notes: true diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 26100e3..5a7032b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,8 +12,8 @@ android { applicationId = "com.vkturn.proxy" minSdk = 23 targetSdk = 28 - versionCode = 8 - versionName = "2.0.1" + versionCode = 9 + versionName = "2.0.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"