diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0e2d66..e2d27c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,51 +9,5 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - # Configure build steps as you'd normally do - - - name: Setup Java - uses: actions/setup-java@v3 - with: - java-version: 21 - distribution: 'zulu' - server-id: central - server-username: MAVEN_USERNAME - server-password: MAVEN_CENTRAL_TOKEN - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE - - # Post JARs to Maven Central - - - name: Release to Maven Central - env: - MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - run: | - export GPG_TTY=$(tty) - git config user.name "${{ github.event.head_commit.committer.name }}" - git config user.email "${{ github.event.head_commit.committer.email }}" - mvn -B --file pom.xml release:prepare release:perform - - # Create a release - - - name: Run JReleaser - uses: jreleaser/release-action@v2 - env: - JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Persist logs - - - name: JReleaser release output - if: always() - uses: actions/upload-artifact@v3 - with: - name: jreleaser-release - path: | - out/jreleaser/trace.log - out/jreleaser/output.properties + - name: JReleaser + uses: jreleaser/release-action@2.4.1