Merge pull request #50 from hughrun/geo2topo

update github action
This commit is contained in:
Hugh Rundle 2021-01-28 18:59:59 +11:00 committed by GitHub
commit c1de272d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -5,6 +5,7 @@ on:
- master
paths:
- 'boundaries.geo.json'
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest