diff --git a/.github/workflows/uploadBuildOnTag.yaml b/.github/workflows/uploadBuildOnTag.yaml index c7476fcb..9ea4daaa 100644 --- a/.github/workflows/uploadBuildOnTag.yaml +++ b/.github/workflows/uploadBuildOnTag.yaml @@ -1,6 +1,9 @@ name: Upload build on release tag on: + push: + tags: + - '*' workflow_dispatch: inputs: tag: @@ -15,7 +18,7 @@ jobs: - uses: actions/checkout@v4 with: - ref: ${{ inputs.tag }} + ref: ${{ inputs.tag || github.ref_name }} - name: Setting up project uses: ./.github/actions/setup @@ -64,7 +67,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.apk-free-generate.outputs.apk-path }} - tag: ${{ inputs.tag }} + tag: ${{ inputs.tag || github.ref_name }} overwrite: true file_glob: true @@ -86,6 +89,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.apk-pro-generate.outputs.apk-path }} - tag: ${{ inputs.tag }} + tag: ${{ inputs.tag || github.ref_name }} overwrite: true file_glob: true