update worklow
This commit is contained in:
parent
12ef934e6c
commit
bc3bcdab47
17
.github/workflows/minify-map-json.yml
vendored
17
.github/workflows/minify-map-json.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
||||||
- 'boundaries.geo.json'
|
- 'boundaries.geo.json'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
processJson:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -17,23 +17,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
process:
|
|
||||||
needs: prepare
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Update TopoJSON boundaries
|
|
||||||
run: |
|
|
||||||
sudo 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
|
||||||
merge:
|
|
||||||
needs: process
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Merge CSV to TopoJSON
|
|
||||||
run: |
|
|
||||||
python3 ./.github/scripts/merge_csv_to_topojson.py
|
python3 ./.github/scripts/merge_csv_to_topojson.py
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
|
Loading…
Reference in a new issue