From a42fa0b0c43fd86b528975a59924be89f6546686 Mon Sep 17 00:00:00 2001 From: Sylvain Jermini Date: Tue, 27 Feb 2024 19:19:34 +0100 Subject: [PATCH] update workflow --- .github/workflows/maven.yml | 7 ++++--- .github/workflows/release.yml | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9be6da8..09a02fe 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,15 +18,16 @@ jobs: java: ['17', '21'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{matrix.java}} + distribution: corretto - name: Maven -v run: ./mvnw -v - name: Cache Maven packages - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f7a820..8af1867 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,18 +3,16 @@ on: push: tags: - mjml4j-* - pull_request: - branches: [ main ] jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' - distribution: 'adopt' + distribution: 'corretto' - name: Publish package env: JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}