Skip to content

Commit

Permalink
[ci] Publish serving tar and zip
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 committed Sep 14, 2022
1 parent 2293361 commit 3c75c17
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/serving_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,17 @@ jobs:
- name: Publish snapshot deb
if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'snapshot' }}
run: |
./gradlew :serving:createDeb -Psnapshot
./gradlew :serving:distZip -Psnapshot
DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}')
aws s3 cp serving/build/distributions/*.deb s3://djl-ai/publish/djl-serving/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}*"
- name: Publish release deb
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}~SNAPSHOT*"
- name: Publish release deb, tar and zip
if: ${{ github.event.inputs.mode == 'staging' }}
run: |
./gradlew :serving:createDeb -Pstaging
./gradlew :serving:dZ :serving:createDeb -Pstaging
DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}')
aws s3 cp serving/build/distributions/*.deb s3://djl-ai/publish/djl-serving/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}*"
aws s3 cp serving/build/distributions/*.tar s3://djl-ai/publish/djl-serving/
aws s3 cp serving/build/distributions/*.zip s3://djl-ai/publish/djl-serving/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/serving-${DJL_VERSION}*"

0 comments on commit 3c75c17

Please sign in to comment.