Skip to content

Commit

Permalink
Add GPG install step
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Mar 3, 2024
1 parent 4b03389 commit 45f4617
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ on:
default: false
type: boolean

install-gpg:
description: Ensure all build images have GnuPG installed
required: false
default: false
type: boolean

# allow single build per branch or PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -262,6 +268,23 @@ jobs:
run: |
brew install mercurial
- name: Install GnuPG
if: >
inputs.install-gpg &&
steps.should-run.conclusion == 'success' &&
matrix.os == 'windows-latest'
run: |
$env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin"
[Environment]::SetEnvironmentVariable("Path", $env:PATH, "Machine")
choco install --yes gpg4win
echo "C:\Program Files (x86)\Gpg4win\..\GnuPG\bin" >> $env:GITHUB_PATH
- name: Check GnuPG
if: >
inputs.install-gpg &&
steps.should-run.conclusion == 'success'
run: gpg --version

- name: Show free disk space
if: steps.should-run.conclusion == 'success'
run: df -h
Expand Down

0 comments on commit 45f4617

Please sign in to comment.