Update dependencies on actions (#63)

* Update dependencies on actions.

* Ensure the JDK is on temurin.

* [ci skip] Uppercase the word "build".
This commit is contained in:
Kichura 2023-05-29 13:05:43 +02:00 committed by GitHub
parent 548e75d279
commit 82fff93c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,28 +5,26 @@ jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
8
]
os: [ubuntu-latest]
java: ["8"]
os: ["ubuntu-22.04"]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
- name: Checkout the repository
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
distribution: 'temurin'
- name: Make Gradle wrapper runnable on Unix
run: chmod +x ./gradlew
- name: build
- name: Build
run: ./gradlew build
- name: capture build artifacts
- name: Upload Build Artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '8' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ViaForge-1.12.2
path: build/libs/