From c420fa8c29190090cf5ef1a0485f4cfb047ba7b0 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Mon, 13 May 2024 10:25:14 -0700 Subject: [PATCH] [ci] Fixes awscurl publish location --- .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 380666487a7..73fe45a5660 100644 --- a/.github/workflows/serving_publish.yml +++ b/.github/workflows/serving_publish.yml @@ -79,13 +79,13 @@ jobs: run: | ./gradlew :awscurl:jar aws s3 cp awscurl/build/awscurl s3://djl-ai/publish/awscurl/ - aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/*" + aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/awscurl" - name: Copy awscurl staging artifacts to S3 if: ${{ github.event.inputs.mode == 'staging' }} run: | ./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 s3 cp awscurl/build/awscurl s3://djl-ai/publish/awscurl/${DJL_VERSION}/ aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/${DJL_VERSION}/*" - name: Publish to snapshot repository if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'snapshot' }}