Skip to content

Commit

Permalink
Merge pull request #36 from moacirrf/ft-signed-nbm
Browse files Browse the repository at this point in the history
Include configurations to sign nbm plugin
  • Loading branch information
moacirrf authored Jan 30, 2023
2 parents 1dc924f + 580ed4c commit 5ae3a7f
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
- name: NBM
- name: Tests
run: mvn test
32 changes: 32 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## YAML Template.
---
name: Pre Release
on:
push:
branches:
- master

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: NBM
run: mvn -Dkeypass=${{secrets.KEYPASS}} verify
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.NETBEANS_ACTION_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
target/*.jar
target/*.nbm
Binary file added keystore.jks
Binary file not shown.
54 changes: 37 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.moacirrf</groupId>
<artifactId>nb-java-decompiler</artifactId>
<version>1.0.2</version>
<version>2.0-SNAPSHOT</version>
<packaging>nbm</packaging>
<name>NB Java Decompiler</name>
<url>https://github.com/moacirrf/nb-java-decompiler</url>
Expand All @@ -20,7 +20,7 @@
<connection>scm:git:https://github.com/moacirrf/nb-java-decompiler</connection>
<developerConnection>scm:git:https://github.com/moacirrf/nb-java-decompiler</developerConnection>
<url>https://github.com/moacirrf/nb-java-decompiler/tree/${project.scm.tag}</url>
<tag>v1.0.2</tag>
<tag>v2.0</tag>
</scm>
<licenses>
<license>
Expand All @@ -44,6 +44,29 @@
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>maven-publish</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>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
Expand All @@ -67,7 +90,10 @@
<licenseName>GNU GENERAL PUBLIC LICENSE 3.0</licenseName>
<licenseFile>LICENSE</licenseFile>
<!-- Path of Netbeans instalation.
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
<keystore>${basedir}/keystore.jks</keystore>
<keystorepassword>${keypass}</keystorepassword>
<keystorealias>nb-java-decompiler-key</keystorealias>
</configuration>
</plugin>
<plugin>
Expand All @@ -94,20 +120,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<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>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down Expand Up @@ -193,6 +205,14 @@
<artifactId>org-netbeans-api-java-classpath</artifactId>
<version>RELEASE130</version>
</dependency>

<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>updater</artifactId>
<version>RELEASE130</version>
<type>jar</type>
</dependency>

</dependencies>

<repositories>
Expand Down

0 comments on commit 5ae3a7f

Please sign in to comment.