update github action
- apparently it needs sudo with no password to npm install? - also added ability to run the json update action manually
This commit is contained in:
parent
092f9d1440
commit
67f63d9202
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
|
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
|
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
|
- master
|
||||||
paths:
|
paths:
|
||||||
- 'boundaries.geo.json'
|
- 'boundaries.geo.json'
|
||||||
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue