Skip to content

Commit

Permalink
Switch to using gradle build action in GitHub workflow (#209)
Browse files Browse the repository at this point in the history
* Switch to using Gradle build action in GitHub workflow
  • Loading branch information
big-andy-coates authored Aug 15, 2023
1 parent 317f1c9 commit 10328af
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Build

on:
push:
branches:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
branches:
- main
schedule:
- cron: "39 5 1,15 * *"
Expand Down Expand Up @@ -41,7 +41,11 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate
gradle-home-cache-cleanup: true
- name: Build
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand All @@ -67,6 +71,17 @@ jobs:
run: |
./gradlew -Dgradle.publish.key="$GRADLE_PUBLISH_KEY" -Dgradle.publish.secret="$GRADLE_PUBLISH_SECRET" publishPlugins
submit-dependencies:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Submit dependencies
uses: gradle/gradle-build-action@v2
with:
dependency-graph: download-and-submit

create-gh-release:
if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-alpha')
needs: build
Expand Down

0 comments on commit 10328af

Please sign in to comment.