Skip to content

check gpg key

check gpg key #12

Workflow file for this run

name: deploy
on:
push:
branches:
- check-gpg-key
jobs:
build:
runs-on: ubuntu-20.04
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
steps:
- name: Check Out Source Code
uses: actions/checkout@v3
- name: Set up Java 8
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Prepare deploy
shell: bash
env:
CODESIGNING: ${{ secrets.CODESIGNING }}
run: |
echo 'Run deploy preparation ' ${GITHUB_REF##*/}
openssl aes-256-cbc -in release/codesigning.asc.enc -out release/codesigning.asc -d -k $CODESIGNING
gpg --batch --fast-import release/codesigning.asc
rm release/codesigning.asc
gpg --list-packets
./mvnw versions:set -DnewVersion=${GITHUB_REF#refs/tags/}
# - name: Deploy
# run: |
# echo 'Deploy'
# ./mvnw deploy --settings release/settings.xml
# echo 'Deploy finished successfully'