update github action #50
4
.github/scripts/minify-map-json.sh
vendored
4
.github/scripts/minify-map-json.sh
vendored
|
@ -1,4 +1,4 @@
|
|||
npm install -g mapshaper
|
||||
sudo npm install -g mapshaper
|
||||
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
|
||||
npm install -g topojson-server
|
||||
sudo npm install -g topojson-server
|
||||
geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json
|
1
.github/workflows/minify-map-json.yml
vendored
1
.github/workflows/minify-map-json.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
|||
- master
|
||||
paths:
|
||||
- 'boundaries.geo.json'
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue