Skip to content

Commit e0e48ce

Browse files
add manual republish
1 parent bef2bf3 commit e0e48ce

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@ 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
14+
if: github.event_name == 'workflow_dispatch' || github.event.release.target_commitish == 'master'
815
steps:
916
- uses: actions/checkout@v6
17+
with:
18+
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }}
1019
- name: Set up Java
1120
uses: actions/setup-java@v5
1221
with:

0 commit comments

Comments
 (0)