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.
This commit is contained in:
Claude committed 2026-07-04 09:00:33 +00:00
1 parent 297e6142e3
commit 5a761fea0a
2 files changed
+13 -2

No files matched your search

+11
View File
@@ -5,11 +5,15 @@ on:
branches: branches:
- main - main
- claude/main-bugs-review-nd8dax - claude/main-bugs-review-nd8dax
tags:
- "v*"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -48,3 +52,10 @@ jobs:
name: TurnProxy-apk name: TurnProxy-apk
path: app/build/outputs/apk/release/*.apk path: app/build/outputs/apk/release/*.apk
if-no-files-found: error 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
+2 -2
View File
@@ -12,8 +12,8 @@ android {
applicationId = "com.vkturn.proxy" applicationId = "com.vkturn.proxy"
minSdk = 23 minSdk = 23
targetSdk = 28 targetSdk = 28
versionCode = 8 versionCode = 9
versionName = "2.0.1" versionName = "2.0.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"