We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef2bf3 commit e0e48ceCopy full SHA for e0e48ce
1 file changed
.github/workflows/publish.yml
@@ -2,11 +2,20 @@ name: Publish package to the Maven Central Repository
2
on:
3
release:
4
types: [created]
5
+ workflow_dispatch:
6
+ branches: [master]
7
+ inputs:
8
+ release_tag:
9
+ description: 'Tag to publish (e.g. v10.1.0). Use for re-publishing a release.'
10
+ required: true
11
jobs:
12
publish:
13
runs-on: ubuntu-latest
14
+ if: github.event_name == 'workflow_dispatch' || github.event.release.target_commitish == 'master'
15
steps:
16
- uses: actions/checkout@v6
17
+ with:
18
+ ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }}
19
- name: Set up Java
20
uses: actions/setup-java@v5
21
with:
0 commit comments