Skip to content

Commit fa267d4

Browse files
committed
feat: Publish pulse-event-cli binary to correct latest folder [PUL-731]
1 parent a79683e commit fa267d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,15 @@ jobs:
5757
binary="$(ls dist/$binary_directory)"
5858
echo "Pushing dist/$binary_directory/$binary to bintray"
5959
aws s3 cp "dist/$binary_directory/$binary" s3://${BUCKET}/${BINARY_PATH}/${{ steps.generate-version.outputs.version }}/$binary_directory/$binary
60+
61+
# If it is a stable version then publish to latest file with current version
62+
if $(echo "${{ steps.generate-version.outputs.version }}" | grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+$'); then
63+
aws s3 cp "dist/$binary_directory/$binary" s3://${BUCKET}/${BINARY_PATH}/latest/$binary_directory/$binary
64+
fi
6065
done
6166
62-
# If it is a stable version then publish to latest file with current version and invalidate cloudfront cache
67+
# If it is a stable version then invalidate cloudfront cache
6368
if $(echo "${{ steps.generate-version.outputs.version }}" | grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+$'); then
64-
echo "${{ steps.generate-version.outputs.version }}" | tr -d '\n' | aws s3 cp - s3://${BUCKET}/${BINARY_PATH}/latest
6569
aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths "/${BINARY_PATH}/latest"
6670
fi
6771
- name: "Push data to pulse"

0 commit comments

Comments
 (0)