Skip to content

Commit

Permalink
CI: run gradle commands in separate steps
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rursprung committed Jun 11, 2024
1 parent 2ddf039 commit d1e22bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1e22bd

Please sign in to comment.