Skip to content

Commit

Permalink
feature: add maven release to github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoesle committed Apr 8, 2024
1 parent 0290c1d commit b418c73
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/workflow-build-and-release-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
username: ${{ secrets.DOCKER_MIRAGON_USERNAME }}
password: ${{ secrets.DOCKER_MIRAGON_PASSWORD }}


- name: Test
run: echo "${{ secrets.PGP_PRIVATE_KEY }}"

- name: BUILD / Build with Maven
if: inputs.maven-release == false
run: |
Expand All @@ -71,14 +67,19 @@ jobs:
# Import it to GPG keyring and trust it.
#
- name: RELEASE / Import GPG key
# if: inputs.maven-release == true
run: echo "${{ secrets.PGP_PRIVATE_KEY }}" | gpg --import --no-tty --batch --yes --always-trust
if: inputs.maven-release == true
run: |
echo "${{ secrets.PGP_PRIVATE_KEY }}"
echo $PGP_PRIVATE_KEY
echo "${{ secrets.PGP_PRIVATE_KEY }}" | gpg --import --no-tty --batch --yes --always-trust
env:
PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}

#
# Show available keys. This will hide the key name (since it is in the secrets), but show for example expiration date
#
- name: RELEASE / List GPG keys available
# if: inputs.maven-release == true
if: inputs.maven-release == true
run: gpg --list-secret-keys --keyid-format=long

- name: RELEASE / Build and Release Maven
Expand Down

0 comments on commit b418c73

Please sign in to comment.