Skip to content

Fix GitHub Actions build script #96

Fix GitHub Actions build script

Fix GitHub Actions build script #96

Workflow file for this run

name: Build on Push/PR
on:
pull_request:
push:
workflow_dispatch:
env:
JAVA_VERSION: 17
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "${{env.JAVA_VERSION}}"
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: gradle remapJar
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/