Skip to content

Commit

Permalink
check gpg key
Browse files Browse the repository at this point in the history
  • Loading branch information
npololnskii committed Aug 14, 2024
1 parent 13a5832 commit 8dc85a7
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: deploy
on:
push:
tags:
- '*'
- '*'
jobs:
build:
runs-on: ubuntu-20.04
Expand All @@ -12,29 +12,30 @@ jobs:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
steps:
- name: Check Out Source Code
uses: actions/checkout@v3
- 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: 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
./mvnw versions:set -DnewVersion=${GITHUB_REF#refs/tags/}
- 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'
- name: Deploy
run: |
echo 'Deploy'
./mvnw deploy --settings release/settings.xml
echo 'Deploy finished successfully'

0 comments on commit 8dc85a7

Please sign in to comment.