Skip to content

Archive on failure

Archive on failure #3

Workflow file for this run

name: Build Gradle project
on:
push:
jobs:
build-gradle-project:
runs-on: ubuntu-22.04
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Archive reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: dependency-verification-report
path: build/reports/