diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef2b1ae..0af4c3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn -B package -DskipTests --file pom.xml -P assembly + run: mvn -B package --file pom.xml -P assembly - name: Import GPG key run: | openssl enc -d -aes-256-cbc -K ${{ secrets.ENCRYPTION_KEY }} -iv ${{ secrets.ENCRYPTION_IV }} -in .github/workflows/secring.asc.enc -out .github/workflows/secring.asc @@ -28,7 +28,7 @@ jobs: cp .github/workflows/settings.xml ~/.m2/settings.xml - name: Release to Maven Central if: success() - run: mvn -B clean deploy --file pom.xml -P assembly -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }} + run: mvn -B clean deploy --file pom.xml -P assembly -DskipTests -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }} - name: Release Plugin Archive uses: softprops/action-gh-release@v1 with: diff --git a/pom.xml b/pom.xml index ce7c712..08154ea 100644 --- a/pom.xml +++ b/pom.xml @@ -315,6 +315,36 @@ + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + + deploy + + + + ossrh + https://oss.sonatype.org/ + true + 15 + +