Skip to content

Commit

Permalink
profile to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro100 committed Apr 25, 2024
1 parent ab752a8 commit d88a3d8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_deploy_java_language_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
mvn install -pl rule-factory
- name: Deploy with Maven
run: mvn -B clean deploy -pl gbfs-java-model
run: mvn -B clean deploy -pl gbfs-java-model -Pci-cd

2 changes: 1 addition & 1 deletion models/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ classes are prefixed with "GBFS".
Packages include GBFS versions to accommodate for future releases which may include older versions,
since some consumers may need to handle multiple non-compatible versions in the same application
(i.e. you should be able to parse v2.1 feeds with the v2.2 package, but v3.0 package would not
be able to parse v2.2 feeds)
be able to parse v2.2 feeds).

## Add the Dependency

Expand Down
39 changes: 36 additions & 3 deletions models/java/gbfs-java-model/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mobilitydata</groupId>
<artifactId>gbfs-java-model</artifactId>
Expand Down Expand Up @@ -396,6 +398,36 @@
</plugins>
</build>
<profiles>
<profile>
<id>ci-cd</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Prevent gpg from using pinentry programs. Fixes: gpg:
signing
failed: Inappropriate ioctl for device -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<activation>
Expand Down Expand Up @@ -438,12 +470,13 @@
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- Set this to true and the release will automatically proceed and sync to Central Repository will follow -->
<!-- Set this to true and the release will automatically proceed and
sync to Central Repository will follow -->
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit d88a3d8

Please sign in to comment.