Add release function to build

This commit is contained in:
2dust
2024-12-24 17:31:32 +08:00
parent fde39bf34e
commit e11dca00bb

View File

@@ -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