From ccf61006ca5c2f88efc14ba0e6400f6b0506724a Mon Sep 17 00:00:00 2001 From: Jaroslav Brtis Date: Sat, 25 May 2024 23:11:44 -0400 Subject: [PATCH] Added Maven release workflow. --- .github/workflows/maven-release.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/maven-release.yml diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml new file mode 100644 index 0000000..076e3ca --- /dev/null +++ b/.github/workflows/maven-release.yml @@ -0,0 +1,36 @@ +name: Maven Release + +on: workflow_dispatch + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-release-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven-release- + ${{ runner.os }}-maven- + + - name: Perform release + uses: maven-flow/release@main + with: + java-version: '17' + distribution: 'temurin'