From 5e1f65407c340ed72deb6fc164cd62606ff0cec2 Mon Sep 17 00:00:00 2001 From: Dennis Labordus Date: Mon, 12 Jul 2021 14:47:14 +0200 Subject: [PATCH] Make release through github actions. Signed-off-by: Dennis Labordus --- .github/workflows/publish-project.yml | 2 +- pom.xml | 92 +++++++++++++++------------ 2 files changed, 53 insertions(+), 41 deletions(-) diff --git a/.github/workflows/publish-project.yml b/.github/workflows/publish-project.yml index 6c60f3f..ac42b23 100644 --- a/.github/workflows/publish-project.yml +++ b/.github/workflows/publish-project.yml @@ -30,6 +30,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy with Maven to GitHub Packages - run: mvn -B clean deploy + run: mvn -B -Prelease clean deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 3c6be32..78782ab 100644 --- a/pom.xml +++ b/pom.xml @@ -24,48 +24,8 @@ SPDX-License-Identifier: Apache-2.0 - - - org.apache.maven.plugins - maven-source-plugin - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.0 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.0 - - - attach-javadocs - - jar - - - - - org.apache.maven.plugins maven-jar-plugin @@ -74,4 +34,56 @@ SPDX-License-Identifier: Apache-2.0 + + + + release + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.0 + + + attach-sources + + jar + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.0 + + + attach-javadocs + + jar + + + + + + + + + + org.apache.maven.plugins + maven-source-plugin + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + + +