Skip to content

Commit

Permalink
Force the use of the bc signer (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjelalura committed Sep 6, 2024
1 parent f911b61 commit 535d842
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'

- name: Build with Maven
run: mvn clean deploy -P sign -Dgpg.signer=bc
env:
MAVEN_GPG_KEY: ${{ secrets.CODE_SIGNING_PRIV_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.CODE_SIGNING_PWD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PW: ${{ secrets.SONATYPE_PW }}
run: mvn clean deploy -P sign
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
git config user.email opensource@acrolinx.com
git config user.name $GIT_USER_NAME
git checkout -b $PR_BRANCH_NAME
mvn -s .m2/settings.xml -P sign -B -Dusername=$GIT_USER_NAME -Dpassword=$GITHUB_TOKEN -DpreparationGoals="clean spotless:apply verify" -DcompletionGoals="spotless:apply" release:prepare release:perform -Dgpg.signer=bc -e
mvn -s .m2/settings.xml -P sign -B -Dusername=$GIT_USER_NAME -Dpassword=$GITHUB_TOKEN -DpreparationGoals="clean spotless:apply verify" -DcompletionGoals="spotless:apply" release:prepare release:perform
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@
<goal>sign</goal>
</goals>
<phase>verify</phase>
<configuration>
<signer>bc</signer>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 535d842

Please sign in to comment.