Skip to content

Commit

Permalink
Use sn-ci to import gpg key
Browse files Browse the repository at this point in the history
  • Loading branch information
yaalsn committed Aug 2, 2023
1 parent 8b13843 commit 7e87ed2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ jobs:
distribution: temurin
java-version: 8

- uses: actions/checkout@v2
with:
repository: streamnative/streamnative-ci
token: ${{ secrets.SNBOT_GITHUB_TOKEN }}
ref: master
path: ci

- name: Import GPG key
run: |
ci/.github/bot/setup-git.sh
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,25 @@
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down

0 comments on commit 7e87ed2

Please sign in to comment.