Merge pull request #132 from 4drian3d/renovate/actions-upload-artifac… #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
cache: 'gradle' | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: nick-invision/retry@v2.9.0 | |
with: | |
timeout_minutes: 4 | |
max_attempts: 2 | |
command: gradle build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EpicGuard | |
path: build/ |