Skip to content

Commit

Permalink
Added Maven release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jardo-51 committed May 26, 2024
1 parent eb9e8e6 commit ccf6100
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit ccf6100

Please sign in to comment.