File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments