Skip to content

Update JDK version to 22 in GitHub Actions workflow #14

Update JDK version to 22 in GitHub Actions workflow

Update JDK version to 22 in GitHub Actions workflow #14

Workflow file for this run

name: Package Publishing
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Grant execute permission for Gradlew
run: chmod +x ./gradlew
- name: Publish to GitHub Packages
run: ./gradlew publishAll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_BUILD_NUMBER: ${{ github.run_number }}