From c6f64909581c5aad8c4fa06a2b287f042f43e782 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). running it in two steps gives more visibilty to which step is failing. note that `publishPluginZipPublicationToZipStagingRepository` is tested explicitly to ensure that this step works as it has previously failed. fixes #60 Signed-off-by: Ralph Ursprung --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d5b5d27..6aff557 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -29,9 +29,9 @@ jobs: with: java-version: ${{ matrix.java }} distribution: temurin - - name: Build and Run Tests run: | - ./gradlew build - # Generated by 'opensearch.pluginzip' custom gradle plugin - ./gradlew publishPluginZipPublicationToZipStagingRepository + ./gradlew build + - name: Publish plugin ZIP to staging repository + run: | + ./gradlew publishPluginZipPublicationToZipStagingRepository