mirror of
https://hub.gitmirror.com/https://github.com/gradle/actions.git
synced 2025-10-28 08:30:02 +08:00
The setup-gradle action
This action is a simple wrapper around gradle/gradle-build-action, removing the deprecated arguments parameter (and thus removing the ability to execute gradle).
The intention is to eventually deprecate gradle-build-action with this being the replacement.
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@v0
- name: Build with Gradle
run: ./gradlew build
See the gradle-build-action documentation for a full description of this action.