From ad911cae5b06d7b3d874569707b68df59e2bdf86 Mon Sep 17 00:00:00 2001 From: Sven Meyer Date: Wed, 11 Oct 2023 12:05:41 +0200 Subject: [PATCH 1/2] Add deployment parts for Maven Central --- .github/workflows/deploy.yml | 34 ++++++++++++ pom.xml | 100 +++++++++++++++++++++++++++++++---- 2 files changed, 125 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..47b1d93 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy PathExpression + +on: [workflow_dispatch] + +jobs: + deployment: + runs-on: ubuntu-latest + name: PathExpression deployment + steps: + - name: Checkout source code + uses: actions/checkout@v3 + # Sets up Java version + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-package: 'jdk' + java-version: '11' + server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin + server-username: OSSRH_USERNAME # Env var that holds your OSSRH user name + server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret + gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase + # Sets up Maven version + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.6.3 + - name: Build & Deploy PathExpression + run: mvn -B -U clean deploy -Pdeployment + env: + SIGN_KEY_PASS: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }} + OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }} + OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 168bc81..6544256 100644 --- a/pom.xml +++ b/pom.xml @@ -3,6 +3,90 @@ de.fraunhofer.iem pathexpression 1.0.1 + + + + Eclipse Public License - v2.0 + https://www.eclipse.org/legal/epl-2.0/ + + + + + scm:git:${project.scm.url} + scm:git:${project.scm.url} + git@github.com:johspaeth/PathExpression.git + ${project.version} + + Implementation of an algorithm by Tarjan that efficiently computes path expressions based on a labeled graph + https://github.com/johspaeth/PathExpression + + + + Johannes Spaeth + johannes.spaeth@codeshield.de + CodeShield GmbH + https://codeshield.de/ + + + + + + + deployment + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://s01.oss.sonatype.org + true + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-source + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + + @@ -19,12 +103,7 @@ - - scm:git:${project.scm.url} - scm:git:${project.scm.url} - git@github.com:johspaeth/PathExpression.git - ${project.version} - + com.google.guava @@ -45,10 +124,13 @@ + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots/ + - github - GitHub Packages - https://maven.pkg.github.com/johspaeth/PathExpression + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ From e65108059ca4b949c663d01379bcc5ebe9b368ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sp=C3=A4th?= Date: Fri, 27 Oct 2023 08:29:51 +0000 Subject: [PATCH 2/2] Updating contact info --- pom.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6544256..f12f67a 100644 --- a/pom.xml +++ b/pom.xml @@ -23,9 +23,7 @@ Johannes Spaeth - johannes.spaeth@codeshield.de - CodeShield GmbH - https://codeshield.de/ + mail@johspaeth.de