From b89bebb9327483d6fd37e4a59b8c96d303d75fdf Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Wed, 8 Apr 2026 10:15:40 +0300 Subject: [PATCH] ci(build): add tag-based release workflow trigger --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96fcf3eb..9d3b2838 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ on: push: branches: - master + tags: + - 'v*' jobs: build: @@ -136,9 +138,9 @@ jobs: - name: Upload to release uses: svenstaro/upload-release-action@v2 - if: github.event.inputs.release_tag != '' + if: github.event.inputs.release_tag != '' || startsWith(github.ref, 'refs/tags/') with: file: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*.apk - tag: ${{ github.event.inputs.release_tag }} + tag: ${{ github.event.inputs.release_tag || github.ref_name }} file_glob: true prerelease: true