From f90117bf27c9fa78bbcba1d3988bc8f265909c8c Mon Sep 17 00:00:00 2001 From: Qing Lan Date: Thu, 4 Jan 2024 13:54:09 -0800 Subject: [PATCH] change build to jar --- .github/workflows/serving_publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/serving_publish.yml b/.github/workflows/serving_publish.yml index 5997401dfb4..e45f35ebead 100644 --- a/.github/workflows/serving_publish.yml +++ b/.github/workflows/serving_publish.yml @@ -77,13 +77,13 @@ jobs: - name: Copy awscurl snapshot artifacts to S3 if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'snapshot' }} run: | - ./gradlew :awscurl:build + ./gradlew :awscurl:jar aws s3 cp awscurl/build/awscurl s3://djl-ai/publish/awscurl/ aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/*" - name: Copy awscurl staging artifacts to S3 if: ${{ github.event.inputs.mode == 'staging' }} run: | - ./gradlew :awscurl:build + ./gradlew :awscurl:jar DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}') aws s3 cp awscurl/build/awscurl s3://djl-ai/publish/${DJL_VERSION}/awscurl/ aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/${DJL_VERSION}/*"