diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 72edaf3bd..f6e6e1800 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,15 +2,23 @@ name: Publish package to the Maven Central Repository on: release: types: [created] + workflow_dispatch: + branches: [master] + inputs: + release_tag: + description: 'Tag to publish (e.g. v10.1.0). Use for re-publishing a release.' + required: true jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }} - name: Set up Java uses: actions/setup-java@v5 with: - java-version: '11' + java-version: '17' distribution: 'zulu' - name: Setup Gradle