Skip to content

Commit

Permalink
[ci] Avoid re-publish serving tarball (#2479)
Browse files Browse the repository at this point in the history
Upload new serving tarball will break homebrew djl-serving package signature
  • Loading branch information
frankfliu authored Mar 25, 2023
1 parent 6f5bb95 commit 438c45d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/serving_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
run: |
./gradlew :benchmark:dZ :benchmark:createDeb -Pstaging
DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}')
if [[ $(aws s3 ls s3://djl-ai/publish/djl-serving/serving-$DJL_VERSION.tar | wc -l) -eq 0 ]]; \
then aws s3 cp benchmark/build/distributions/*.tar s3://djl-ai/publish/djl-bench/${DJL_VERSION}/; \
else echo serving tarball published already!; fi
aws s3 cp benchmark/build/distributions/*.deb s3://djl-ai/publish/djl-bench/${DJL_VERSION}/
aws s3 cp benchmark/build/distributions/*.tar s3://djl-ai/publish/djl-bench/${DJL_VERSION}/
aws s3 cp benchmark/build/distributions/*.zip s3://djl-ai/publish/djl-bench/${DJL_VERSION}/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-bench/${DJL_VERSION}/*"

0 comments on commit 438c45d

Please sign in to comment.