From 5ecea550e792c51007c5b3e5e7f635fef82c4d24 Mon Sep 17 00:00:00 2001 From: cliu123 <lc12251109@gmail.com> Date: Fri, 13 Aug 2021 16:20:32 -0700 Subject: [PATCH 1/2] Trigger CD workflow for all tags --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5f9a379aa4..02c6efd679 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,7 +3,7 @@ name: CD on: push: tags: - - 'v*' + - '*' jobs: build: From a6e20a556ec492a67b69c82bb78ca05ac858c28a Mon Sep 17 00:00:00 2001 From: cliu123 <lc12251109@gmail.com> Date: Fri, 13 Aug 2021 17:12:02 -0700 Subject: [PATCH 2/2] Check out OpenSearch after cache --- .github/workflows/cd.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 02c6efd679..2cb9dcabcd 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,13 +16,6 @@ jobs: with: java-version: 14.0.x - - name: Checkout OpenSearch - uses: actions/checkout@v2 - with: - repository: 'opensearch-project/OpenSearch' - path: OpenSearch - ref: '1.0' - - name: Checkout security uses: actions/checkout@v2 @@ -33,6 +26,13 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Checkout OpenSearch + uses: actions/checkout@v2 + with: + repository: 'opensearch-project/OpenSearch' + path: OpenSearch + ref: '1.0' + - name: Build OpenSearch working-directory: ./OpenSearch run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false