Skip to content

Commit b071d0b

Browse files
ci: Fix publish workflow (#2396)
1 parent e4a3555 commit b071d0b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@ name: Publish package to the Maven Central Repository
22
on:
33
release:
44
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
511
jobs:
612
publish:
713
runs-on: ubuntu-latest
814
steps:
915
- uses: actions/checkout@v6
16+
with:
17+
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }}
1018
- name: Set up Java
1119
uses: actions/setup-java@v5
1220
with:
13-
java-version: '11'
21+
java-version: '17'
1422
distribution: 'zulu'
1523

1624
- name: Setup Gradle

0 commit comments

Comments
 (0)