From d05a1407d0c84118ab5b0bbec2a86f9d05907f1a Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Tue, 11 Jun 2024 11:45:15 +0200 Subject: [PATCH] CI: run gradle commands in separate steps 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 b4d2d0a..3842b89 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -29,12 +29,12 @@ 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 - name: Update version to the next development iteration if: matrix.os != 'windows-latest' run: |