From c90ccf81c83663f0b892bad9333a46f9e0cb0ba5 Mon Sep 17 00:00:00 2001 From: Jeremiah Winsley Date: Sat, 23 Nov 2024 10:59:06 -0500 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3a075055..2f2f70cc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,11 @@ name: Release Build on: - push: - tags: - - 'v*' + release: + permissions: + contents: write + types: + - published jobs: build: @@ -17,6 +19,12 @@ jobs: with: distribution: 'zulu' java-version: '21' + - name: Cache Gradle packages + uses: actions/cache@v4 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle