Freeze version, fix github action

This commit is contained in:
Brendan C. Ward 2020-03-26 13:45:47 -07:00
parent a5b262f5b3
commit 446c5e4228
No known key found for this signature in database
GPG Key ID: 37A8A7A2D61DFE13
2 changed files with 18 additions and 18 deletions

View File

@ -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")"
# 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")"
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
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"
echo "----> Upload is complete"

View File

@ -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)