From 46d148c9d5de498fe6465635271611aa99c75b9a Mon Sep 17 00:00:00 2001 From: Leandro Afonso Date: Sun, 23 Nov 2025 22:23:13 +0000 Subject: [PATCH] Allow manual trigger for publish-release job --- .github/workflows/maven.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 48035b2..0ae2296 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -77,7 +77,7 @@ jobs: publish-release: runs-on: ubuntu-latest needs: [build, build-windows] - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' permissions: contents: write steps: @@ -94,6 +94,11 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: + tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'snapshot-build' }} + name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'Manual Snapshot Build' }} + draft: false + prerelease: true + make_latest: false files: | main/target/*.jar windows-dist/*.zip