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"