Skip to content

Commit 79b1ed5

Browse files
authored
Update publish.yml
1 parent 54a5fe0 commit 79b1ed5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
description: The tag to publish
77
required: true
88
push:
9-
tags: *
9+
tags: [ 'v*.*.*' ]
1010

1111
jobs:
1212
build:
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout Repository
2020
uses: actions/checkout@v4
2121
with:
22-
ref: refs/tags/${{ inputs.tag }}
22+
ref: ${{ github.event.inputs.tag || github.ref }}
2323

2424
- name: Set up JDK 17
2525
uses: actions/setup-java@v4
@@ -52,7 +52,7 @@ jobs:
5252
- name: Checkout
5353
uses: actions/checkout@v3
5454
with:
55-
ref: refs/tags/${{ inputs.tag }}
55+
ref: ${{ github.event.inputs.tag || github.ref }}
5656

5757
- name: Download Library JAR
5858
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)