Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tben authored Jun 21, 2024
1 parent 30ecde4 commit 9bf2692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ jobs:

- name: Convert SHP to GeoJSON
run: |
ogr2ogr -select admin,iso_a3 -f geojson ne_110m_admin_0_countries/ne_110m_admin_0_countries.geojson ne_110m_admin_0_countries/ne_110m_admin_0_countries.shp
ogr2ogr -select admin,iso_a3 -f geojson ne_110m_admin_0_countries.geojson ne_110m_admin_0_countries/ne_110m_admin_0_countries.shp
- name: Output file
run: echo "GeoJSON file created:"

- name: Format file
run: |
cat ne_110m_admin_0_countries/ne_110m_admin_0_countries.geojson | sed 's/"admin": /"name": /g' | sed 's/"iso_a3": /"ISO3166-1-Alpha-3": /g' > ne_110m_admin_0_countries/ne_110m_admin_0_countries.geojson
cat ne_110m_admin_0_countries.geojson | sed 's/"admin": /"name": /g' | sed 's/"iso_a3": /"ISO3166-1-Alpha-3": /g' > ne_110m_admin_0_countries.geojson
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: geojson-output
path: ne_110m_admin_0_countries/ne_110m_admin_0_countries.geojson
path: ne_110m_admin_0_countries.geojson

0 comments on commit 9bf2692

Please sign in to comment.