From 13d734e05c4e0f14e8dfc312bfd116f8529fcd4a Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 27 Aug 2024 07:27:05 -0400 Subject: [PATCH] Fix GA release workflow Signed-off-by: Andriy Redko --- .github/workflows/create_release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index d9d2a38..b886a7a 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -11,7 +11,8 @@ on: jobs: create_release: - runs-on: ubuntu-20.04 # newest available distribution, aka focal + # Hard-coding an LTS means maintenance, but only once each 2 years! + runs-on: ubuntu-22.04 steps: - name: Checkout Repository uses: actions/checkout@v2 @@ -20,6 +21,11 @@ jobs: # the tag MAJOR.MINOR.PATCH event, but we still need to deploy the maven-release-plugin master commit. token: ${{ secrets.GH_TOKEN }} fetch-depth: 1 # only need the base commit as license check isn't run + - name: Setup java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' # zulu as it supports a wide version range + java-version: 17 - name: Cache local Maven repository uses: actions/cache@v2 with: