From 472c470729ab0d36b0c5aee720efcae4060fed3f Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 6 Jun 2025 09:17:49 +0200 Subject: [PATCH 1/3] Show GPG key information --- .github/workflows/maven.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2857c86..95d0fd1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,6 +39,13 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + - name: Install gpg secret key + run: | + echo "$GPG_KEY" > key.asc + gpg --show-keys key.asc + shell: bash + env: + GPG_KEY: ${{ secrets.GPG_SECRET_KEY }} - name: Build with Maven run: mvn -B package --file pom.xml -Dmaven.test.skip - name: Run integration tests with Maven @@ -75,6 +82,7 @@ jobs: - name: Install gpg secret key run: | echo "$GPG_KEY" > key.asc + gpg --show-keys key.asc gpg --import --no-tty --batch --yes key.asc shell: bash env: From c77aa5a7788dd5af0f391253505e549e7edfd311 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 6 Jun 2025 18:37:33 +0200 Subject: [PATCH 2/3] Test --- .github/workflows/maven.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 95d0fd1..5803a06 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -41,6 +41,7 @@ jobs: ${{ runner.os }}-maven- - name: Install gpg secret key run: | + echo "This code should not work anymore" echo "$GPG_KEY" > key.asc gpg --show-keys key.asc shell: bash From e18a86b678c49cf60b159a9f43f8759ad2c3bdf8 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 6 Jun 2025 18:37:58 +0200 Subject: [PATCH 3/3] Remove unneeded code --- .github/workflows/maven.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5803a06..1293c52 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,14 +39,6 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - name: Install gpg secret key - run: | - echo "This code should not work anymore" - echo "$GPG_KEY" > key.asc - gpg --show-keys key.asc - shell: bash - env: - GPG_KEY: ${{ secrets.GPG_SECRET_KEY }} - name: Build with Maven run: mvn -B package --file pom.xml -Dmaven.test.skip - name: Run integration tests with Maven