diff --git a/.github/workflows/version-and-release.yml b/.github/workflows/version-and-release.yml index 0808b6f711..007d8875e8 100644 --- a/.github/workflows/version-and-release.yml +++ b/.github/workflows/version-and-release.yml @@ -1,9 +1,8 @@ name: Release on: - push: - tags: - - '*' + release: + types: [published] jobs: build: @@ -23,7 +22,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '8' - distribution: 'adopt' + distribution: 'temurin' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD