From f8d96bea4bbfb5d9d4f36f291d3cc081d3034bd2 Mon Sep 17 00:00:00 2001 From: Vincent Fuchs Date: Sun, 26 Nov 2023 12:21:14 -0500 Subject: [PATCH] upgrading github actions (#81) * upgrading github actions * same distribution in both workflows fixes #77 --- .github/workflows/build_workflow.yml | 7 ++++--- .github/workflows/release_workflow.yml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml index b5d8337..e11c258 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') }} diff --git a/.github/workflows/release_workflow.yml b/.github/workflows/release_workflow.yml index 9851e8e..ba79c4b 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