diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5f9a379aa4..2cb9dcabcd 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,7 +3,7 @@ name: CD on: push: tags: - - 'v*' + - '*' jobs: build: @@ -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