From 75035d52ee8afa4fb8ca890b003c21c088b51eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Mendelski?= Date: Fri, 9 Sep 2022 22:33:54 +0200 Subject: [PATCH] Update dependencies and java --- .github/workflows/release.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85cf236..6ffa506 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,20 @@ jobs: echo ::set-output name=next_version::$NEXT_VERSION echo -e "VERSION: $VERSION\nNEXT_VERSION: $NEXT_VERSION" + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v5 + if: | + github.event_name != 'release' + && github.ref == 'refs/heads/master' + && inputs.publish != 'SNAPSHOT' + with: + gpg_private_key: ${{ secrets.GPG_KEY_SECRET2 }} + passphrase: ${{ secrets.GPG_PASSWORD }} + git_user_signingkey: true + git_commit_gpgsign: true + git_committer_name: Coditory Bot + git_committer_email: bot@coditory.com + - name: Update version in README (master only) if: | github.event_name != 'release' @@ -81,8 +95,6 @@ jobs: PREV_VERSION: ${{ steps.versions.outputs.version }} NEXT_VERSION: ${{ steps.versions.outputs.next_version }} run: | - git config user.name "Coditory CI" - git config user.email "Coditory CI " declare -r ESC_PREV_VERSION="${PREV_VERSION//./\\.}" echo "Changing: $PREV_VERSION -> $NEXT_VERSION" sed -i "s|${ESC_PREV_VERSION}|${NEXT_VERSION}|" README.md @@ -110,8 +122,8 @@ jobs: || (inputs.publish == 'AUTO' && github.ref == 'refs/heads/master') env: NEXT_VERSION: ${{ steps.versions.outputs.next_version }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY2 }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD2 }} NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} run: |