From c31c406929dc0b1cfc7ef9528aa5de2151a3ad27 Mon Sep 17 00:00:00 2001 From: MeowMC <70984351+MeowMC@users.noreply.github.com> Date: Wed, 24 Feb 2021 22:13:49 -0500 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f7accd0..4a30739 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -4,10 +4,8 @@ name: Java CI with Gradle on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + release: + types: [created] jobs: build: @@ -22,8 +20,11 @@ jobs: java-version: 1.8 - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle - run: ./gradlew build + run: gradle build additionalCopy + env: + BUILD_RELEASE: ${{ github.event.prerelease == false }} - name: Upload assets to a Release uses: AButler/upload-release-assets@v2.0