Let's get this somewhat functional #62
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: 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 |