Skip to content

Commit 14b2b7b

Browse files
committed
Trigger Maven publish workflows on version tag push
Updated GitHub Actions for Maven Central and GitHub Packages to run on pushes to version tags (e.g., 1.0.0) instead of release creation. This streamlines the publishing process to trigger automatically when a new version tag is pushed.
1 parent 8a5f6f7 commit 14b2b7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/maven-central-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish to Maven Central Repository
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types: [ created ]
5+
push:
6+
tags: [ "*.*.*" ] # Matches version tags like 1.0.0, 0.1.2, etc.
77

88
jobs:
99
deploy:

.github/workflows/maven-github-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish to GitHub Packages
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types: [ created ]
5+
push:
6+
tags: [ "*.*.*" ] # Matches version tags like 1.0.0, 0.1.2, etc.
77

88
jobs:
99
publish:

0 commit comments

Comments
 (0)