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..f12f67a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,6 +3,88 @@ 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 + mail@johspaeth.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 +101,7 @@ - - scm:git:${project.scm.url} - scm:git:${project.scm.url} - git@github.com:johspaeth/PathExpression.git - ${project.version} - + com.google.guava @@ -45,10 +122,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/