From 9714bed6a4ec0dcfac3770d1535f8ce5a7204b63 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Tue, 13 Aug 2024 23:59:42 -0700 Subject: [PATCH] [ci] Fixes serving publish for awscurl release version (#3411) --- .github/workflows/serving_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/serving_publish.yml b/.github/workflows/serving_publish.yml index 1d278e0a649..dc4fcd94d1e 100644 --- a/.github/workflows/serving_publish.yml +++ b/.github/workflows/serving_publish.yml @@ -83,7 +83,7 @@ jobs: - name: Copy awscurl staging artifacts to S3 if: ${{ github.event.inputs.mode == 'staging' }} run: | - ./gradlew :awscurl:jar + ./gradlew :awscurl:jar -Pstaging DJL_VERSION=$(awk -F '=' '/djl / {gsub(/ ?"/, "", $2); print $2}' gradle/libs.versions.toml) aws s3 cp awscurl/build/awscurl s3://djl-ai/publish/awscurl/${DJL_VERSION}/ aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/${DJL_VERSION}/*"