Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check gpg key #319

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 26 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: deploy
on:
push:
tags:
- '*'
branches:
- check-gpg-key
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 -k
./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'
Loading