From d9079f4e69b977807837a355cd7b73d3c976ee16 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Fri, 15 Sep 2023 14:01:43 +0200 Subject: [PATCH] prepare release (distribution to local directory) --- .github/workflows/release-from-tag.yml | 18 ++++++++++++++++++ pom.xml | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/release-from-tag.yml diff --git a/.github/workflows/release-from-tag.yml b/.github/workflows/release-from-tag.yml new file mode 100644 index 0000000000..ccfe8de18c --- /dev/null +++ b/.github/workflows/release-from-tag.yml @@ -0,0 +1,18 @@ +name: Release from Tag + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 2d1a5cb667..d477393cdb 100644 --- a/pom.xml +++ b/pom.xml @@ -60,6 +60,12 @@ 2.23.2 3.1.0 2.2.2 + + + local-directory + file:///temp/deploy-snapshot + local-directory + file:///temp/deploy-release @@ -174,6 +180,20 @@ src/main/content + + org.apache.maven.plugins + maven-release-plugin + + OddEvenVersionPolicy + + + + org.apache.maven.release + maven-release-oddeven-policy + ${maven-release-plugin.version} + + +