Commit 00e69a5 0 parents commit 00e69a5 Copy full SHA for 00e69a5
File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Download and Process Data
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main # Run this workflow on pushes to the main branch
7
+ pull_request :
8
+ branches :
9
+ - main # Run this workflow on pull requests to the main branch
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v2
18
+
19
+ - name : Install dependencies
20
+ run : |
21
+ sudo apt-get update
22
+ sudo apt-get install -y gdal-bin unzip
23
+
24
+ - name : Download file
25
+ run : wget -q https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip -O ne_110m_admin_0_countries.zip
26
+
27
+ - name : Unzip file
28
+ run : unzip ne_110m_admin_0_countries.zip -d ne_110m_admin_0_countries
29
+
30
+ - name : Convert SHP to GeoJSON
31
+ run : |
32
+ 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
33
+
34
+ - name : Output file
35
+ run : echo "GeoJSON file created: ne_110m_admin_0_countries/ne_110m_admin_0_countries.geojson"
36
+
37
+ - name : Upload build artifact
38
+ uses : actions/upload-artifact@v2
39
+ with :
40
+ name : geojson-output
41
+ path : output/world-110m-geo.json
You can’t perform that action at this time.
0 commit comments