Build and Publish #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |