From e11dca00bbbcf1a6dcdc281250beae4e120ecb79 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:31:32 +0800 Subject: [PATCH] Add release function to build --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c90f104..5e69540b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ name: Build APK on: + workflow_dispatch: + inputs: + release_tag: + required: false + type: string push: branches: - master @@ -154,3 +159,11 @@ jobs: with: name: x86-apk path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*x86*.apk + + - name: Upload AndroidLibXrayLite to release + uses: svenstaro/upload-release-action@v2 + if: github.event.inputs.release_tag != '' + with: + file: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*playstore*/release/*.apk + tag: ${{ github.event.inputs.release_tag }} + file_glob: true \ No newline at end of file