Skip to content

Commit

Permalink
use setup-java for java version
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleymw authored May 26, 2024
1 parent ba003b9 commit 859aac7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/folia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

# Runs a set of commands using the runners shell
- name: 'Build Folia .jar'
run: |
sudo apt update
sudo apt install openjdk-21-jre-headless
sh build.sh
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 859aac7

Please sign in to comment.