Skip to content

Commit

Permalink
Update nightly build job for a successful release to maven central (#475
Browse files Browse the repository at this point in the history
)
  • Loading branch information
purbon committed Apr 6, 2022
1 parent 1b78446 commit 9acec6f
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/nightly-artifacts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Import private GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
Expand All @@ -88,6 +83,12 @@ jobs:
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Publish package
run: mvn verify -Dgpg.passphrase="$GPG_PASSPHRASE" --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Import public GPG Key
run: rpm --import release/keys/public.key
- name: Build the rpm
Expand Down
72 changes: 72 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,36 @@
</description>
<url>https://github.com/purbon/</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>

<organization>
<name>Pere Urbon</name>
<url>https://github.com/purbon/</url>
</organization>

<developers>
<developer>
<id>purbon</id>
<name>Pere Urbon-Bayes</name>
<email>pere.urbon@©mail.com</email>
<url>https://purbon.github.io/</url>
<organization>Me</organization>
<timezone>Europe/Berlin</timezone>
</developer>
</developers>

<scm>
<connection>git@github.com:kafka-ops/julie.git</connection>
<url>https://github.com/kafka-ops/julie</url>
</scm>

<profiles>
<profile>
<id>failsafe</id>
Expand Down Expand Up @@ -371,6 +396,53 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit 9acec6f

Please sign in to comment.