Skip to content

Merge pull request #124 from BySwiizen/dependabot/github_actions/acti… #403

Merge pull request #124 from BySwiizen/dependabot/github_actions/acti…

Merge pull request #124 from BySwiizen/dependabot/github_actions/acti… #403

Workflow file for this run

name: Build Gradle
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
# https://github.com/actions/checkout
- name: Check out Git repository
uses: actions/[email protected]
# https://github.com/gradle/gradle-build-action
- name: Setup Gradle
uses: gradle/actions/[email protected]
# https://github.com/gradle/wrapper-validation-action
- name: Wrapper validation
uses: gradle/actions/[email protected]
# https://github.com/actions/setup-java
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '21'
java-package: jdk
architecture: x64
cache: gradle
- name: Configure Git
run: git config --global user.name "Github Actions" && git config --global user.email "[email protected]"
- name: Make Gradlew executable
run: chmod +x ./gradlew
# https://github.com/nick-fields/retry
- name: Build project
uses: nick-invision/[email protected]
with:
max_attempts: 2
timeout_minutes: 5
command: ./gradlew build shadowJar
# https://github.com/actions/upload-artifact
- name: Upload build artifact
uses: actions/[email protected]
with:
name: TooExpensiveFix
path: build/libs/TooExpensiveFix-*.jar