Import GPG key in GitHub Actions workflow
@@ -7,10 +7,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - name: Import GPG Key
+ uses: crazy-max/ghaction-import-gpg@v1
+ env:
+ GPG_PRIVATE_KEY: ${{ secrets.GPG_SECRET_KEY }}
+ PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Maven
- run: ./mvnw package
+ run: ./mvnw -B package
