Skip to content

Update gradle.yml

Update gradle.yml #107

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
version: [ 'Lab1', 'Lab2', 'Lab3', 'Lab4' ]
steps:
- uses: actions/checkout@main
- name: Set up JDK 21
uses: actions/setup-java@main
with:
java-version: '21'
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@main
- name: Build with Gradle
run: ./gradlew :app${{matrix.version}}:build
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: compiled-artifact-${{github.run_number}}-${{github.run_attempt}}
overwrite: true
path: ./app${{matrix.version}}/build/libs/*.jar
merge:
runs-on: windows-latest
- name: Merge Artifacts

Check failure on line 36 in .github/workflows/gradle.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gradle.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
uses: actions/upload-artifact/merge@main
with:
name: compiled-artifact
delete-merged: true