HexCasting/.github/workflows/gradle.yml
petrak@ 7136b84318
Make CI not trigger except on a tag push
i push a lot of broken code just to save my work, nothing is going to be good and remotely stable unless there's a tag
2022-03-04 21:56:22 -06:00

24 lines
557 B
YAML

name: Java CI with Gradle
on:
push:
tags:
- 'v*'
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