Skip to content

Commit

Permalink
Freeze version, fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward committed Mar 26, 2020
1 parent a5b262f commit 446c5e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions .github/actions/build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# 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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 446c5e4

Please sign in to comment.