Skip to content

Commit c0e3625

Browse files
committed
Trigger maven central release on tags
1 parent 8a6eb7d commit c0e3625

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/git-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Git Release
33
on:
44
push:
55
tags:
6-
- "v[0-9]+.[0-100]+.[0-9]+"
6+
- "v[0-9]+.[0-9]+.[0-9]+"
77
workflow_dispatch:
88

99
jobs:

.github/workflows/preview-and-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- 'LICENSE'
1010
- 'THIRD PARTY NOTICES'
1111
- '*.md'
12+
tags:
13+
- "v[0-9]+.[0-9]+.[0-9]+"
1214
workflow_dispatch:
1315

1416
env:
@@ -49,7 +51,7 @@ jobs:
4951
run: ./gradlew $PREVIEW_TASK
5052

5153
maven_Release:
52-
if: ${{ github.ref == 'refs/heads/dev' }}
54+
if: startsWith(github.ref, 'refs/tags/')
5355
environment:
5456
name: maven_central_release
5557
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)