diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index d108d10..c5483bf 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -15,12 +15,15 @@ jobs: - uses: actions/setup-java@v3 with: java-version: '17' - distribution: 'adopt' + distribution: 'zulu' + cache: 'maven' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE + - name: build-with-maven + run: mvn -B package --file pom.xml - name: publish-maven-central-packages run: mvn --batch-mode clean deploy env: