diff --git a/.github/actions/build/entrypoint.sh b/.github/actions/build/entrypoint.sh index 78985cf..f091e4a 100755 --- a/.github/actions/build/entrypoint.sh +++ b/.github/actions/build/entrypoint.sh @@ -65,23 +65,23 @@ cd $release_path ls -al -# # Upload to github release assets -# for asset in "${release_path}"/*.zip; do -# file_name="$(basename "$asset")" - -# status_code="$(curl -sS -X POST \ -# --write-out "%{http_code}" -o "/tmp/$file_name.json" \ -# -H "Authorization: token $GITHUB_TOKEN" \ -# -H "Content-Length: $(stat -c %s "$asset")" \ -# -H "Content-Type: application/zip" \ -# --upload-file "$asset" \ -# "$UPLOAD_URL?name=$file_name")" - -# if [ "$status_code" -ne "201" ]; then -# >&2 printf "\n\tERR: Failed asset upload: %s\n" "$file_name" -# >&2 jq . < "/tmp/$file_name.json" -# exit 1 -# fi -# done - -# echo "----> Upload is complete" \ No newline at end of file +# Upload to github release assets +for asset in "${release_path}"/*.zip; do + file_name="$(basename "$asset")" + + status_code="$(curl -sS -X POST \ + --write-out "%{http_code}" -o "/tmp/$file_name.json" \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Content-Length: $(stat -c %s "$asset")" \ + -H "Content-Type: application/zip" \ + --upload-file "$asset" \ + "$UPLOAD_URL?name=$file_name")" + + if [ "$status_code" -ne "201" ]; then + >&2 printf "\n\tERR: Failed asset upload: %s\n" "$file_name" + >&2 jq . < "/tmp/$file_name.json" + exit 1 + fi +done + +echo "----> Upload is complete" \ No newline at end of file diff --git a/README.md b/README.md index eddd773..6b3e5e2 100644 --- a/README.md +++ b/README.md @@ -447,7 +447,7 @@ But do not forget to perform it in the end. ## Changes -### 0.6 (in progress) +### 0.6 - fixed bug in map preview when bounds are not defined for a tileset (#84) - updated Leaflet to 1.6.0 and Mapbox GL to 0.32.0 (larger upgrades contingent on #65)