mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 00:02:10 -05:00
Execute your Gradle build and trigger dependency submission
.github | ||
.gitignore | ||
action.yml | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md |
Important
As of
v3
this action has been superceded bygradle/actions/setup-gradle
. Any workflow that usesgradle/gradle-build-action@v3
will transparently delegate togradle/actions/setup-gradle@v3
.Users are encouraged to update their workflows, replacing:
uses: gradle/gradle-build-action@v3
with
uses: gradle/actions/setup-gradle@v3
See the setup-gradle documentation for up-to-date documentation for
gradle/actions/setup-gradle
.
Setup Gradle for use in GitHub Actions workflows
This GitHub Action can be used to configure Gradle on any platform supported by GitHub Actions.
Example usage
name: Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
See the full setup-gradle documentation for more advanced usage scenarios.