diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3a07505..2f2f70cc 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