Skip to content

Let's get this somewhat functional #62

Let's get this somewhat functional

Let's get this somewhat functional #62

name: Java CI with Gradle
on:
push:
branches: [ master, main ]
tags:
- "**"
pull_request:
branches: [ master, main ]
jobs:
build-script-jar:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Run build with Gradle Wrapper
uses: gradle/gradle-build-action@v2
with:
arguments: -b build-CI.gradle build
- name: Artifact jar
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}
path: ./build/libs/${{ github.event.repository.name }}.jar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./${{ github.event.repository.name }}.jar