Skip to content

Commit

Permalink
ci: Support releasing by github action
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Dec 19, 2023
1 parent 4445943 commit 5c82aa7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
39 changes: 20 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
</developers>

<scm>
<url>https://github.com/sinch/sinch-sdk-java/tree/main</url>
<connection>scm:git:git://github.com/sinch/sinch-sdk-java.git</connection>
<developerConnection>scm:git:ssh://github.com:sinch/sinch-sdk-java.git</developerConnection>
<url>https://github.com/JPPortier/cloned.git</url>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
</scm>

<issueManagement>
Expand Down Expand Up @@ -76,7 +76,7 @@
<!-- releasing -->
<maven.source.plugin.version>3.2.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.6.0</maven.javadoc.plugin.version>
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<nexus-staging-maven-plugin>1.6.13</nexus-staging-maven-plugin>
</properties>
Expand Down Expand Up @@ -258,10 +258,14 @@
<!-- deployment/releasing-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<skip>true</skip>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<tagNameFormat>@{project.version}</tagNameFormat>
<goals>deploy</goals>
</configuration>
</plugin>

Expand Down Expand Up @@ -411,7 +415,14 @@

<profiles>
<profile>
<id>deploy</id>
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>

<build>
<plugins>

Expand Down Expand Up @@ -447,8 +458,7 @@
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
<gpgArguments>
<passphraseServerId>${gpg.passphrase}</passphraseServerId> <gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
Expand All @@ -462,15 +472,6 @@
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin}</version>
<extensions>true</extensions>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Source: https://help.sonatype.com/repomanager2/staging-releases/configuring-your-project-for-deployment
serverId: The id of the server element in settings.xml from which the user credentials for accessing the repository manager should be retrieved
Expand Down
2 changes: 1 addition & 1 deletion settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.keyname>${env.GPG_KEY}</gpg.keyname>
<gpg.keyname>${env.GPG_KEY_ID}</gpg.keyname>
<gpg.passphrase>${env.GPG_PWD}</gpg.passphrase>
</properties>
</profile>
Expand Down

0 comments on commit 5c82aa7

Please sign in to comment.