reconfigure minify-map-json action #51
1
.github/scripts/minify-map-json.sh
vendored
1
.github/scripts/minify-map-json.sh
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
sudo 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
|
||||||
sudo npm install -g topojson-server
|
sudo npm install -g topojson-server
|
||||||
|
|
17
.github/workflows/minify-map-json.yml
vendored
17
.github/workflows/minify-map-json.yml
vendored
|
@ -14,10 +14,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Update TopoJSON boundaries
|
- name: Update TopoJSON boundaries
|
||||||
run: ./.github/scripts/minify-map-json.sh
|
run: |
|
||||||
merge:
|
sudo npm install -g mapshaper
|
||||||
|
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
|
||||||
|
process:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Update TopoJSON boundaries
|
||||||
|
run: |
|
||||||
|
sudo npm install -g topojson-server
|
||||||
|
geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json
|
||||||
|
merge:
|
||||||
|
needs: process
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Merge CSV to TopoJSON
|
- name: Merge CSV to TopoJSON
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue