Skip to content

Commit

Permalink
Import GPG key before release
Browse files Browse the repository at this point in the history
  • Loading branch information
cemartins committed Oct 4, 2020
1 parent 6b9d3c9 commit 2e80ed9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: Maven Build

on:
push:
Expand All @@ -12,7 +12,7 @@ on:
jobs:
build:

runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
Expand All @@ -16,6 +16,14 @@ jobs:
with:
java-version: 1.8

- name: Setup GPG
env:
GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
shell: bash
run: |
echo "$GPG_KEY" > GPG_KEY.txt
gpg --import --batch GPG_KEY.txt
- name: Configure git
run: |
git config --global committer.email "[email protected]"
Expand Down
1 change: 1 addition & 0 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<profile>
<id>gpg</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>mockrunner</gpg.keyname>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
Expand Down

0 comments on commit 2e80ed9

Please sign in to comment.