From d6c2f6c43becbdbc6b13a5b33d4236398cf9a205 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Date: Fri, 21 Jun 2024 12:53:32 -0400 Subject: [PATCH] chore: use github action deploy --- .github/workflows/release.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3b1546..d481faa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,11 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} steps: + - name: Import GPG keys + run: | + echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import + echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust + - name: Use checkout uses: actions/checkout@v4 with: @@ -29,18 +34,14 @@ jobs: with: distribution: 'temurin' java-version: 8 - - - name: Import GPG keys - run: | - echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import - echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust - - - name: Build with Jacoco - run: mvn --settings scripts/settings.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent package org.jacoco:jacoco-maven-plugin:report + cache: 'maven' + server-id: ossrh + server-username: SONATYPE_USERNAME + server-password: SONATYPE_PASSWORD + gpg-private-key: GPG_SECRET_KEYS + gpg-passphrase: GPG_PASSPHRASE - name: Deploy - run: | - export GPG_TTY=$(tty) - chmod +x scripts/deploy.sh - ./scripts/deploy.sh + run: mvn deploy +