Skip to content

Commit 6fb6681

Browse files
authored
Edit export yml file (#1307)
* Edit export yml file * Edit export yml file * Edit export yml file
1 parent 1423176 commit 6fb6681

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

β€Ž.github/workflows/export.ymlβ€Ž

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ jobs:
162162
working-directory: ./bin
163163
run: php console export:json
164164

165+
- name: Convert JSON to GeoJSON
166+
working-directory: ./bin
167+
run: |
168+
python3 scripts/export/json_to_geojson.py
169+
170+
- name: Convert JSON to Toon Format
171+
working-directory: ./bin
172+
run: |
173+
python3 scripts/export/json_to_toon.py
174+
165175
- name: Export XML
166176
working-directory: ./bin
167177
run: php console export:xml
@@ -292,6 +302,20 @@ jobs:
292302
gzip -9 -k -f json/cities.json
293303
echo " βœ“ json/cities.json.gz"
294304
fi
305+
306+
# TOON Files
307+
echo "πŸ“„ Compressing TOON files..."
308+
if [ -f toon/cities.toon ]; then
309+
gzip -9 -k -f toon/cities.toon
310+
echo " βœ“ toon/cities.toon.gz"
311+
fi
312+
313+
# GEOJSON Files
314+
echo "πŸ“„ Compressing GEOJSON files..."
315+
if [ -f geojson/cities.geojson ]; then
316+
gzip -9 -k -f geojson/cities.geojson
317+
echo " βœ“ geojson/cities.geojson.gz"
318+
fi
295319
296320
# XML Files
297321
echo "πŸ“„ Compressing XML files..."
@@ -350,7 +374,7 @@ jobs:
350374
echo "βœ… All compression complete!"
351375
echo ""
352376
echo "πŸ“Š Compressed file sizes:"
353-
ls -lh json/*.gz xml/*.gz yml/*.gz csv/*.gz sql/*.gz psql/*.gz sqlite/*.gz sqlserver/*.gz 2>/dev/null || true
377+
ls -lh json/*.gz toon/*.gz geojson/*.gz xml/*.gz yml/*.gz csv/*.gz sql/*.gz psql/*.gz sqlite/*.gz sqlserver/*.gz 2>/dev/null || true
354378
355379
- name: Update README.md
356380
run: |
@@ -368,7 +392,7 @@ jobs:
368392
πŸ“¦ Export database formats - ${{ env.current_date }}
369393
370394
βœ… All export formats completed successfully:
371-
- JSON/XML/YAML/CSV: Structured data exports
395+
- JSON/TOON/GEOJSON/XML/YAML/CSV: Structured data exports
372396
- MySQL/PostgreSQL: SQL dump exports
373397
- SQLite: Database file exports
374398
- SQL Server/MongoDB: Alternative format exports
@@ -393,6 +417,8 @@ jobs:
393417
394418
### βœ… Generated Formats
395419
- **JSON** - Structured data format
420+
- **TOON** - Structured data format
421+
- **GEOJSON** - Structured data format
396422
- **XML** - Markup language format
397423
- **YAML** - Human-readable format
398424
- **CSV** - Spreadsheet format

0 commit comments

Comments
Β (0)