From 5c486a223acfd153ec990fe621c71687a3e6a0f5 Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Tue, 11 Jun 2024 11:45:15 +0200 Subject: [PATCH] CI: run all gradle commands in one go right now `./gradlew build` could fail but the script would still go on (because neither `set -e` is set nor `&&` is used to run both commands together). the easiest solution is to just run both gradle target in one go as one anyway depends on the other - there's no need to start gradle twice. this will also make the runs ever so slightly faster. fixes #60 Signed-off-by: Ralph Ursprung --- .github/workflows/CI.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d5b5d27..0b6390e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -32,6 +32,4 @@ jobs: - name: Build and Run Tests run: | - ./gradlew build - # Generated by 'opensearch.pluginzip' custom gradle plugin - ./gradlew publishPluginZipPublicationToZipStagingRepository + ./gradlew build publishPluginZipPublicationToZipStagingRepository