Skip to content

Build and Publish

Build and Publish #2

name: Build source with Gradle
permissions:
contents: read
on:
push:
branches: [ "main" ]
paths: ["lib/src/"]
pull_request:
branches: [ "main" ]
paths: ["lib/src/"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Temurin OpenJDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Set up Gradle 8.5
uses: gradle/[email protected]
id: setup-gradle
- name: Checkout
uses: actions/checkout@v4
- name: Build with Gradle
uses: gradle/[email protected]
with:
arguments: --info jar
- name: Upload artifact
uses: actions/[email protected]
with:
name: Build-jar
path: build/libs/JSONutils.jar