1
0
Fork 0
happy-cat/.github/workflows/jar.yml

29 lines
595 B
YAML

name: Build jar release on tag
on:
push:
tags:
- '*'
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew shadowJar
- name: Archive build
uses: actions/upload-artifact@v2
with:
name: build
path: build/libs/