From 42ea476cb1274404b21120ac6942a40147c00eb9 Mon Sep 17 00:00:00 2001 From: Vincent FUCHS Date: Sun, 26 Nov 2023 13:26:54 -0500 Subject: [PATCH] upgrading github actions --- .github/workflows/build_workflow.yml | 9 +++++---- .github/workflows/release_workflow.yml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml index b5d8337..2f8419c 100644 --- a/.github/workflows/build_workflow.yml +++ b/.github/workflows/build_workflow.yml @@ -8,13 +8,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 21 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'temurin' java-version: 21 - name: Cache Maven packages - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -22,4 +23,4 @@ jobs: - name: Build with Maven run: mvn clean install --no-transfer-progress - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 diff --git a/.github/workflows/release_workflow.yml b/.github/workflows/release_workflow.yml index 6f6c5e4..b372b80 100644 --- a/.github/workflows/release_workflow.yml +++ b/.github/workflows/release_workflow.yml @@ -6,7 +6,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install gpg secret key run: | cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import @@ -17,7 +17,7 @@ jobs: uses: actions/setup-java@v3 with: java-version: '21' - distribution: 'adopt' + distribution: 'temurin' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD