diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1786f31f..1b5f6143 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,11 +24,20 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + - name: Install GPG + run: | + cat <(echo -e "${{ secrets.MAVEN_CENTRAL_GPG_SECRET_KEY }}") | gpg --batch --import + gpg --list-secret-keys --keyid-format LONG + - name: Staging run: ./gradlew publish - name: Publish to Maven Central - run: ./gradlew jreleaserFullRelease -Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} -Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }} + run: | + ./gradlew jreleaserFullRelease \ + -Dsigning.passphrase=${{ MAVEN_CENTRAL_GPG_SECRET_PASSWORD }} \ + -Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} \ + -Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}