2022-02-05 19:38:38 +01:00
|
|
|
name: Java CI with Gradle
|
|
|
|
on:
|
2022-03-05 04:56:22 +01:00
|
|
|
push:
|
2022-03-27 06:46:42 +02:00
|
|
|
tags: 'v*'
|
|
|
|
branches: 'main'
|
2022-02-05 19:38:38 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
- name: Build with Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
|
|
|
arguments: build
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
with:
|
|
|
|
name: Package
|
|
|
|
path: build/libs
|