Skip to content

Commit

Permalink
Merge pull request #62 from Mailaender/codesign
Browse files Browse the repository at this point in the history
Add a code signing profile
  • Loading branch information
eselmeister authored Mar 20, 2024
2 parents 6a722a9 + 63ec5f2 commit 0e5f292
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
###############################################################################
# Copyright (c) 2021, 2024 Lablicate GmbH and others
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/.
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Matthias Mailänder - initial API and implementation
###############################################################################
name: Continuous Integration

on:
Expand All @@ -9,17 +21,13 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
container:
image: maven:3.9.4-eclipse-temurin-17

steps:
- name: Checkout OpenChrom Thirdparty
uses: actions/checkout@v3
with:
path: openchrom3rdparty
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build with Maven
run: cd openchrom3rdparty && mvn -f openchrom/cbi/net.openchrom.thirdpartylibraries.cbi/pom.xml install --batch-mode --no-transfer-progress
32 changes: 31 additions & 1 deletion openchrom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>pom</packaging>
<properties>
<!-- versions for plugins to use -->
<tycho.version>3.0.4</tycho.version>
<tycho.version>4.0.6</tycho.version>
<pmd.version>3.16.0</pmd.version>
<checkstyle.version>3.1.2</checkstyle.version>
<maven-install-plugin.version>2.5.2</maven-install-plugin.version>
Expand Down Expand Up @@ -150,4 +150,34 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>codesign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<keystore>${jarsigner.keystore}</keystore>
<alias>${jarsigner.alias}</alias>
<storepass>${jarsigner.storepass}</storepass>
<keypass>${jarsigner.keypass}</keypass>
</configuration>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 0e5f292

Please sign in to comment.