Skip to content

Commit

Permalink
ci: Provide geonames database as GitHub release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Jul 6, 2024
1 parent 01706cc commit 7f8d25a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ jobs:
with:
name: release-apk-signed

- name: Download Geonames database
run: |
mkdir geodata
cd geodata
curl -o cities500.zip https://download.geonames.org/export/dump/cities500.zip
curl -o admin1CodesASCII.txt https://download.geonames.org/export/dump/admin1CodesASCII.txt
curl -o admin2Codes.txt https://download.geonames.org/export/dump/admin2Codes.txt
curl -o LICENSE https://creativecommons.org/licenses/by/4.0/legalcode.txt
unzip cities500.zip
rm -f cities500.zip
date --iso-8601=seconds | tr -d "\n" > geodata-date.txt
cd ..
zip -r geodata.zip geodata/*
- name: Create draft release
uses: softprops/action-gh-release@v2
with:
Expand All @@ -86,4 +100,5 @@ jobs:
docker/hwaccel.ml.yml
docker/hwaccel.transcoding.yml
docker/prometheus.yml
geodata.zip
*.apk

0 comments on commit 7f8d25a

Please sign in to comment.